j3d.examples.particles.generationshapes
Class RadialGenerationShape

java.lang.Object
  extended by j3d.examples.particles.generationshapes.GenerationShape
      extended by j3d.examples.particles.generationshapes.RadialGenerationShape
All Implemented Interfaces:
IGenerationShape

public class RadialGenerationShape
extends GenerationShape
implements IGenerationShape

Emits particles from within a circle or disk. Particles are emitted from a region defined by the local origin, the radius and radius variance. A small radius variance emits from a ring. A radius variance equal to the radius emits from a circle. The particles are emitted along the plane of the circle or disk.


Constructor Summary
RadialGenerationShape(float aRadius, float aRadiusVariance)
           
 
Method Summary
 void initializeParticlePosition(Particle aParticle)
           
 void initializeParticleVelocity(Particle aParticle)
           
 
Methods inherited from class j3d.examples.particles.generationshapes.GenerationShape
getEmitter, setEmitter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface j3d.examples.particles.generationshapes.IGenerationShape
setEmitter
 

Constructor Detail

RadialGenerationShape

public RadialGenerationShape(float aRadius,
                             float aRadiusVariance)
Method Detail

initializeParticlePosition

public void initializeParticlePosition(Particle aParticle)
Specified by:
initializeParticlePosition in interface IGenerationShape

initializeParticleVelocity

public void initializeParticleVelocity(Particle aParticle)
Specified by:
initializeParticleVelocity in interface IGenerationShape