Module technology.sola.engine
Class CircleEmitterShape
java.lang.Object
technology.sola.engine.physics.component.particle.emitter.ParticleEmitterShape
technology.sola.engine.physics.component.particle.emitter.CircleEmitterShape
CircleEmitterShape is a
ParticleEmitterShape that emits particles in the shape of a circle.-
Constructor Summary
ConstructorsConstructorDescriptionCircleEmitterShape(float radius) Creates a CircleEmitterShape with the desired radius. -
Method Summary
Methods inherited from class technology.sola.engine.physics.component.particle.emitter.ParticleEmitterShape
isEmitFromShell, isRandomDirection, nextEmission, setEmitFromShell, setRandomDirection
-
Constructor Details
-
CircleEmitterShape
public CircleEmitterShape(float radius) Creates a CircleEmitterShape with the desired radius.- Parameters:
radius- the radius of the circle
-
-
Method Details
-
getRadius
public float getRadius()- Returns:
- the radius of the circle
-
setRadius
Sets the radius of the emission circle.- Parameters:
radius- the new radius of the emission circle- Returns:
- this
-
getCenter
- Specified by:
getCenterin classParticleEmitterShape- Returns:
- the center point of the shape
-
randomPointInShape
- Specified by:
randomPointInShapein classParticleEmitterShape- Returns:
- a random point inside the shape
-
randomPointOnPerimeter
- Specified by:
randomPointOnPerimeterin classParticleEmitterShape- Returns:
- a random point on the perimeter of the shape
-