j3d.examples.particles.influences
Class Vortex
java.lang.Object
j3d.examples.particles.influences.Vortex
- All Implemented Interfaces:
- ParticleLifeCycleListener, ExternalInfluenceInterface
public class Vortex
- extends java.lang.Object
- implements ExternalInfluenceInterface, ParticleLifeCycleListener
Constructor Summary |
Vortex(double spreadAngle,
float innerRadius,
float outterRadius,
double angularVelocity,
float heightVelocity)
|
Vortex(float spreadAngle,
float innerRadius,
float outterRadius,
float angularVelocity,
float heightVelocity)
|
Method Summary |
void |
aboutToDie(java.util.List c,
float dt)
|
void |
aboutToEmit(java.util.List aList,
float dt)
|
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. |
void |
updated(java.util.List c,
float dt)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Vortex
public Vortex(double spreadAngle,
float innerRadius,
float outterRadius,
double angularVelocity,
float heightVelocity)
Vortex
public Vortex(float spreadAngle,
float innerRadius,
float outterRadius,
float angularVelocity,
float heightVelocity)
aboutToDie
public void aboutToDie(java.util.List c,
float dt)
- Specified by:
aboutToDie
in interface ParticleLifeCycleListener
aboutToEmit
public void aboutToEmit(java.util.List aList,
float dt)
- Specified by:
aboutToEmit
in interface ParticleLifeCycleListener
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 updatedt
- - The time interval (in seconds) since the last apply
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.
updated
public void updated(java.util.List c,
float dt)
- Specified by:
updated
in interface ParticleLifeCycleListener