- All Implemented Interfaces:
- Renderable, Updateable, Skin, GLTransform, Colored, Dimensioned, GLGroupTransformed, Located, Rotated, Scaled, ScreenObject, Visible
public class ExplosionParticle
- extends SprayParticle
ExplosionParticle extends SprayParticle to simplify the process of creating
a certain type of particle effect - in this case, a particle sent straight
out from its origin at a random angle. This effect is useful for things like
fireworks, explosions, impact effects, and any "burst"-like affect.
- Chris Molini
|Fields inherited from class org.jrabbit.standard.game.objects.particles.base.Particle
Creates an Explosion Particle with the indicated settings.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ExplosionParticle(float speed,
- Creates an Explosion Particle with the indicated settings.
speed - How quickly the particle moves away from its origin.
scaleRate - The rate at which the particle scales. It's probably best to
make this a negative value (so the particle shrinks).
spinRate - The rate at which the particle spins.
lifetime - The length of time the particle should remain alive. The
particle gradually fades out during this period.