Class EllipseParticle
java.lang.Object
de.gurkenlabs.litiengine.graphics.emitters.particles.Particle
de.gurkenlabs.litiengine.graphics.emitters.particles.ShapeParticle
de.gurkenlabs.litiengine.graphics.emitters.particles.EllipseParticle
- All Implemented Interfaces:
ITimeToLive
Represents a particle in the shape of an ellipse. This class extends the
ShapeParticle to provide specific behavior for elliptical
particles.-
Constructor Summary
ConstructorsConstructorDescriptionEllipseParticle(float width, float height) Initializes a new instance of theEllipseParticleclass with the specified dimensions. -
Method Summary
Methods inherited from class ShapeParticle
getBoundingBox, renderMethods inherited from class Particle
getAbsoluteLocation, getAbsoluteX, getAbsoluteY, getAccelerationX, getAccelerationY, getAliveTime, getAngle, getCollisionType, getColor, getCustomRenderType, getDeltaAngle, getDeltaHeight, getDeltaWidth, getHeight, getOpacity, getOutlineThickness, getRenderLocation, getTimeToLive, getVelocityX, getVelocityY, getWidth, getX, getY, hasRayCastCollision, init, isAntiAliased, isContinuousCollisionEnabled, isFading, isFadingOnCollision, isOutlineOnly, isStoppingOnCollision, setAccelerationX, setAccelerationY, setAngle, setAntiAliasing, setCollisionType, setColor, setContinuousCollision, setCustomRenderType, setDeltaAngle, setDeltaHeight, setDeltaWidth, setFade, setFadeOnCollision, setHeight, setOutlineOnly, setOutlineThickness, setStopOnCollision, setTimeToLive, setVelocityX, setVelocityY, setWidth, setX, setY, timeToLiveReached, update, usesCustomRenderType
-
Constructor Details
-
EllipseParticle
public EllipseParticle(float width, float height) Initializes a new instance of theEllipseParticleclass with the specified dimensions.- Parameters:
width- The width of the ellipse.height- The height of the ellipse.
-
-
Method Details
-
getShape
Creates and returns the shape of the ellipse particle, transformed based on the emitter's origin and rotation.- Specified by:
getShapein classShapeParticle- Parameters:
emitterOrigin- The origin point of the emitter.- Returns:
- A
Shaperepresenting the transformed ellipse.
-