Class PolygonParticle

All Implemented Interfaces:
ITimeToLive

public class PolygonParticle extends ShapeParticle
  • Constructor Details

    • PolygonParticle

      public PolygonParticle(float width, float height, int sides)
  • Method Details

    • getShape

      protected Shape getShape(Point2D emitterOrigin)
      Description copied from class: ShapeParticle

      Retrieves the shape of the particle based on the emitter's origin.

      This method must be implemented by subclasses to define the specific shape of the particle.

      Specified by:
      getShape in class ShapeParticle
      Parameters:
      emitterOrigin - the origin point of the emitter
      Returns:
      the shape of the particle