Constructs a CurlNoise behaviour instance.
Spatial frequency of the field (samples position × scale)
Velocity magnitude imparted by the field
Seed for the (deterministic) noise field
The life of the behaviour
The behaviour's decaying trend
Determines if the behaviour will be applied or not
Gets the behaviour's life.
Ensures that life is infinity if an invalid value is supplied.
AbstractdestroyDestroy this behaviour.
Compares the age of the behaviour vs integration time and determines if the behaviour should be set to dead or not.
Optionalindex: numberAbstractfromReturns a new instance of the behaviour from the JSON object passed.
AbstractinitializeMutates the particle's velocity by the curl of the noise field.
the particle to apply the behaviour to
particle engine time
Optionalindex: number
the particle index
Normalize a value by 1:100.
Resets the behaviour properties.
Optionallife: numberOptionaleasing: EasingFunctionStaticfromCreates a CurlNoise behaviour from JSON.
The JSON to construct the instance from.
Behaviour that drives particles with the curl of a seeded noise field — the standard for organic, roiling turbulence (smoke, fire, dust, energy). Because the field is the curl of a vector potential it is divergence-free, so particles swirl and fold without clumping or thinning.
Like
Vortex, it is applied to the particle's velocity (not acceleration), so it is not subject to theForce1:100 (MEASURE) scaling. It is deterministic: the field is built once fromseedvia the seeded PRNG (spec 02's mulberry32), neverMath.random, so the same seed yields the same flow on every machine.