Class: FlowField

FlowField

new FlowField()

Creates a new FlowField.
Source:

Methods

build()

Builds a FlowField.
Source:

init(opt_options=)

Initializes an instance.
Parameters:
Name Type Argument Default Description
opt_options= Object <optional>
A map of initial properties.
opt_options.resolution number <optional>
50 The lower the value, the more vectors are created to define the flow field. Low values increase processing time to create the field.
opt_options.perlinSpeed number <optional>
0.01 The speed to move through the Perlin Noise space.
opt_options.perlinTime number <optional>
100 Sets the Perlin Noise time.
opt_options.field Object <optional>
null A list of vectors that define the flow field.
opt_options.createMarkers Object <optional>
false Set to true to visualize the flow field.
opt_options.world Object <optional>
System.firstWorld() The flowField's world.
Source: