j3d.examples.particles.generationshapes
Class PointGenerationShape

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

public class PointGenerationShape
extends GenerationShape
implements IGenerationShape

Emits particles from a single point. 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 point). The spread angle is the number of radians from the y-axis to the edge of the emitting cone of particles (similar to a spot light).


Constructor Summary
PointGenerationShape(double spreadAngle)
           
PointGenerationShape(float spreadAngle)
           
 
Method Summary
 void initializeParticlePosition(Particle particle)
           
 void initializeParticleVelocity(Particle particle)
           
 
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

PointGenerationShape

public PointGenerationShape(float spreadAngle)

PointGenerationShape

public PointGenerationShape(double spreadAngle)
Method Detail

initializeParticlePosition

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

initializeParticleVelocity

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