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

@NullMarked public class TrapezoidEmitterShape extends ParticleEmitterShape
TrapezoidEmitterShape is a ParticleEmitterShape that emits particles in the shape of a trapezoid.
  • Constructor Details

    • TrapezoidEmitterShape

      public TrapezoidEmitterShape(Vector2D direction, float baseWidth, float height, float otherBaseWidth)
      Creates a TrapezoidEmitterShape. The direction is the vector going from the first base of the trapezoid towards the other base. The height is the distance between the two bases.
       Ex: direction (0, -1) + baseWidth 2 + height 5 + otherBaseWidth 8
       ________
       \      /
        \    /
         \__/
       
      Parameters:
      direction - the direction of the trapezoid
      baseWidth - the width of the first base of the trapezoid
      height - the height of the trapezoid
      otherBaseWidth - the width of the second base of the trapezoid
  • Method Details