Constructs a Gravity behaviour instance.
the force to pull the particle down the y axis
Optionallife: number
the life of the particle
Optionaleasing: EasingFunction
the easing equation to use
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.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.
Optionalfx: number
the x axis force
Optionalfy: number
the y axis force
Optionalfz: number
the z axis force
StaticfromCreates a Force initializer from JSON.
The JSON to construct the instance from.
Behaviour that forces particles down the y axis.