new Lifetime(min, max)
This plugin gives each particle a lifetime between min and max.
Parameters:
| Name | Type | Description |
|---|---|---|
min |
Number | The minimum lifetime to give each particle. |
max |
Number | The maximum lifetime to give each particle. |
Methods
-
initialize(emitter, particle)
-
Called as part of the particle plugin lifecycle. Initialize is called on a particle when a particle is spawned. Note that particles are reused!
Parameters:
Name Type Description emitterParticleEmitter The ParticleEmitter acting upon this particle. particleParticle The Particle to initialize.