Class R.particles.effects.ExplosionParticle
An explosion particle
Defined in: explosion.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.particles.effects.ExplosionParticle(pos, ttl, decay)
|
Method Attributes | Method Name and Description |
---|---|
draw(renderContext, time, dt)
Called by the particle engine to draw the particle to the rendering
context.
|
Class Detail
R.particles.effects.ExplosionParticle(pos, ttl, decay)
- Parameters:
- pos
- {Point2D} The starting position of the particle. A velocity vector will be derived from this position.
- ttl
- {Number} Particle lifetime (time to live) in milliseconds
- decay
- {Number} A floating point which indicates the speed decay
Method Detail
draw(renderContext, time, dt)
Called by the particle engine to draw the particle to the rendering
context.
- Parameters:
- renderContext
- {RenderContext} The rendering context
- time
- {Number} The engine time in milliseconds
- dt
- {Number} The delta between the world time and the last time the world was updated in milliseconds.