j3d.examples.particles.generationshapes
Class LineGenerationShape
java.lang.Object
j3d.examples.particles.generationshapes.GenerationShape
j3d.examples.particles.generationshapes.LineGenerationShape
- All Implemented Interfaces:
- GenerationShapeInterface
public class LineGenerationShape
- extends GenerationShape
- implements GenerationShapeInterface
Emits particles along a line. The line is along the x-axis and
particles are emitted in the direction of positive y-axis.
Particles are spread in the YZ plane based on the spread angle.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineGenerationShape
public LineGenerationShape(float spreadAngle,
float aLength)
LineGenerationShape
public LineGenerationShape(double spreadAngle,
float aLength)
initializeParticlePosition
public void initializeParticlePosition(Particle particle)
- Specified by:
initializeParticlePosition
in interface GenerationShapeInterface
initializeParticleVelocity
public void initializeParticleVelocity(Particle particle)
- Specified by:
initializeParticleVelocity
in interface GenerationShapeInterface