Constructs a Collision behaviour instance.
The emitter containing the particles to detect collisions against
Determiens whether to use mass or not
Function to call when particles collide
Optionallife: number
The life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
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.
AbstractinitializeDetects collisions with other particles and calls the onCollide function on colliding particles.
the particle to apply the behaviour to
particle engine time
Optionalindex: number
the particle index
Normalize a value by 1:100.
Resets the behaviour properties.
The emitter containing the particles to detect collisions against
Determiens whether to use mass or not
Function to call when particles collide
Optionallife: number
The life of the particle
Optionaleasing: EasingFunction
The behaviour's decaying trend
Behaviour that causes particles to move away from other particles they collide with.