new Acceleration(xval, yval)
Applies a constant acceleration to each particle throughout a
particle's lifetime.
Parameters:
| Name | Type | Description |
|---|---|---|
xval |
Number | Acceleration to apply in the x direction. |
yval |
Number | Acceleration to apply in the y direction. |
Methods
-
update(emitter, particle)
-
Called as part of the particle plugin lifecycle. Update is called every frame to update a particle.
Parameters:
Name Type Description emitterParticleEmitter The ParticleEmitter instance. particleParticle The particle to act on.