Constructs a RandomDrift behaviour instance.
x axis drift
y axis drift
z axis drift
drift delay
Optionallife: number
The life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
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.acceleration property.
the particle to apply the behaviour to
engine time
Optionalindex: number
the particle index
Normalize a value by 1:100.
Resets the behaviour properties.
x axis drift
y axis drift
z axis drift
drift delay
Optionallife: number
The life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
Staticfrom
Behaviour that causes particles to drift to random coordinates in 3D space.