j3d.examples.particles.generationshapes
Class DiskGenerationShape

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

public class DiskGenerationShape
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 in the direction of positive y-axis. Particles are spread radially based on the spread angle (in all directions away from the local origin).


Constructor Summary
DiskGenerationShape(double spreadAngle, float aRadius, float aRadiusVariance)
           
DiskGenerationShape(float spreadAngle, 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

DiskGenerationShape

public DiskGenerationShape(float spreadAngle,
                           float aRadius,
                           float aRadiusVariance)

DiskGenerationShape

public DiskGenerationShape(double spreadAngle,
                           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