java.lang.Object
technology.sola.engine.physics.component.particle.emitter.ParticleEmitterShape
technology.sola.engine.physics.component.particle.emitter.TriangleEmitterShape

@NullMarked public class TriangleEmitterShape extends ParticleEmitterShape
TriangleEmitterShape is a ParticleEmitterShape that emits particles in the shape of an Isoceles triangle.
  • Constructor Details

    • TriangleEmitterShape

      public TriangleEmitterShape(Vector2D direction, float height, float width)
      Creates a TriangleEmitterShape. The direction is the vector going from the isolated point of the triangle towards the non-equal side. The height is the distance the non-equal side is away from the isolated point, and the width is the width of the non-equal side.
       Ex: direction (0, -1) + height 3 + width 5
       ______
       \    /
        \  /
         \/
       
      Parameters:
      direction - the direction of the triangle
      height - the height of the triangle
      width - the width of the triangle
  • Method Details