Constructs a CrossZone behaviour instance.
the zone used to apply to particles with this behaviour
OptionalcrossType: string
enum of cross types, valid strings include 'dead', 'bound', 'cross'
Optionallife: number
The life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
OptionalisEnabled: boolean
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.
AbstractinitializeApplies the behaviour to the particle.
the particle to apply the behaviour to
engine time
Optionalindex: number
the particle index
Normalize a value by 1:100.
Resets the behaviour properties.
the zone used to apply to particles with this behaviour
enum of cross types, valid strings include 'dead', 'bound', 'cross'
Optionallife: number
The life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
StaticfromCreates a CrossZone initializer from JSON.
The JSON to construct the instance from.
Behaviour that allows for specific functions to be called on particles when they interact with a zone.