j3d.examples.particles.influences
Class Slow

java.lang.Object
  extended by j3d.examples.particles.influences.Slow
All Implemented Interfaces:
IExternalInfluence

public class Slow
extends java.lang.Object
implements IExternalInfluence

An influence to slow a particle by deceleration. The default deceleration is 5 meters per second per second.


Constructor Summary
Slow()
           
Slow(float aRate)
           
 
Method Summary
 void apply(Particle aParticle, float dt)
          Apply this (possibly time varying) influence to the particle for the time interval.
 void initializeParticle(Particle aParticle)
          Initialize a particle prior to the first emission.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slow

public Slow()

Slow

public Slow(float aRate)
Method Detail

initializeParticle

public void initializeParticle(Particle aParticle)
Description copied from interface: IExternalInfluence
Initialize a particle prior to the first emission.

Specified by:
initializeParticle in interface IExternalInfluence
Parameters:
aParticle - - the particle to initialize.

apply

public void apply(Particle aParticle,
                  float dt)
Description copied from interface: IExternalInfluence
Apply this (possibly time varying) influence to the particle for the time interval.

Specified by:
apply in interface IExternalInfluence
Parameters:
aParticle - - The particle to update
dt - - The time interval (in seconds) since the last apply