Constructs a Rotate behaviour instance.
X axis rotation
Y axis rotation
Z axis rotation
Optionallife: number
The life of the behaviour
Optionaleasing: EasingFunction
The easing equation to use for transforms
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.
Gets the rotation type.
Sets the rotation type.
Sets the particle's rotation prior to the behaviour being applied.
NOTE It's hard to see here, but this is mutating the particle's rotation even though the particle is not being passed in directly.
NOTE the else if below will never be reached because the value being passed in will never be of type Vector3D.
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.
Initializes the behaviour on a particle.
the particle to initialize the behaviour on
Mutates the particle.rotation 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 rotation
Optionaly: number
Y axis rotation
Optionalz: number
Z axis rotation
Optionallife: number
the life of the behaviour
Optionaleasing: EasingFunction
the easing equation to use for transforms
Staticfrom
Behaviour that rotates particles.