j3d.examples.particles.generationshapes
Class PointGenerationShape
java.lang.Object
j3d.examples.particles.generationshapes.GenerationShape
j3d.examples.particles.generationshapes.PointGenerationShape
- All Implemented Interfaces:
- GenerationShapeInterface
public class PointGenerationShape
- extends GenerationShape
- implements GenerationShapeInterface
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).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointGenerationShape
public PointGenerationShape(float spreadAngle)
PointGenerationShape
public PointGenerationShape(double spreadAngle)
initializeParticlePosition
public void initializeParticlePosition(Particle particle)
- Specified by:
initializeParticlePosition
in interface GenerationShapeInterface
initializeParticleVelocity
public void initializeParticleVelocity(Particle particle)
- Specified by:
initializeParticleVelocity
in interface GenerationShapeInterface