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