new Rotation(min, max)
This plugin chooses a random rotation for each particle between min and max.
Parameters:
| Name | Type | Description |
|---|---|---|
min |
Number | The minimum value for a rotation. |
max |
Number | The maximum value for a rotation. |
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.