Constructs a Scale behaviour instance.
OptionalscaleA: number
the starting scale value
OptionalscaleB: number
the ending scale value
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 _same property which determines if the scale props are the same.
Sets the _same property which determines if the scale props are the same.
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. Stores initial values for comparison and mutation in the applyBehaviour method.
the particle to initialize the behaviour on
Applies the behaviour to the particle. Mutates the particle's scale and its radius according to this scale.
the particle to apply the behaviour to
engine time
Optionalindex: number
the particle index
Normalize a value by 1:100.
Resets the behaviour properties.
OptionalscaleA: number
the starting scale value
OptionalscaleB: number
the ending scale value
Optionallife: number
the life of the behaviour
Optionaleasing: EasingFunction
the easing equation to use for transforms
StaticfromReturns a new instance of the behaviour from the JSON object passed.
JSON object containing the required constructor properties
Behaviour that scales particles.