Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting special treatment before the Emitter's transformation is applied.
Called to initialize a wave of particles, with a reference to the first particle in the linked list.
The first (maybe only) particle in a newly spawned wave of particles.
A hook for when a particle is recycled.
The particle that was just recycled.
true
if the reycling was due to natural lifecycle, false
if it was due to emitter cleanup.
Updates a single particle for a given period of time elapsed. Return true
to recycle the particle.
The particle to update.
The time to advance the particle by in seconds.
Generated using TypeDoc
All behaviors instances must implement this interface, and the class must match the IEmitterBehaviorClass interface. All behaviors must have an order property and
initParticles
method. Implementing theupdateParticle
orrecycleParticle
methods is optional.