Class ParticleEffect

java.lang.Object
mindustry.entities.Effect
mindustry.entities.effect.ParticleEffect

public class ParticleEffect extends Effect
The most essential effect class. Can create particles in various shapes.
  • Field Details

    • colorFrom

      public Color colorFrom
    • colorTo

      public Color colorTo
    • particles

      public int particles
    • randLength

      public boolean randLength
    • casingFlip

      public boolean casingFlip
      Gives the effect flipping compatability like casing effects.
    • cone

      public float cone
    • length

      public float length
    • baseLength

      public float baseLength
    • interp

      public Interp interp
      Particle size/length/radius interpolation.
    • sizeInterp

      @Nullable public Interp sizeInterp
      Particle size interpolation. Null to use interp.
    • offsetX

      public float offsetX
    • offsetY

      public float offsetY
    • lightScl

      public float lightScl
    • lightOpacity

      public float lightOpacity
    • lightColor

      @Nullable public Color lightColor
    • spin

      public float spin
      Spin in degrees per tick.
    • sizeFrom

      public float sizeFrom
      Controls the initial and final sprite sizes.
    • sizeTo

      public float sizeTo
      Controls the initial and final sprite sizes.
    • useRotation

      public boolean useRotation
      Whether the rotation adds with the parent
    • offset

      public float offset
      Rotation offset.
    • region

      public String region
      Sprite to draw.
    • line

      public boolean line
    • strokeFrom

      public float strokeFrom
    • strokeTo

      public float strokeTo
    • lenFrom

      public float lenFrom
    • lenTo

      public float lenTo
    • cap

      public boolean cap
  • Constructor Details

    • ParticleEffect

      public ParticleEffect()
  • Method Details