j3d.examples.particles.influences
Class Slow

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

public class Slow
extends java.lang.Object
implements ExternalInfluenceInterface

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: ExternalInfluenceInterface
Initialize a particle prior to the first emission.

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

apply

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

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