Class Trail

java.lang.Object
mindustry.graphics.Trail

public class Trail extends Object
  • Field Details

    • length

      public int length
    • points

      protected FloatSeq points
    • lastX

      protected float lastX
    • lastY

      protected float lastY
    • lastAngle

      protected float lastAngle
    • counter

      protected float counter
    • lastW

      protected float lastW
  • Constructor Details

    • Trail

      public Trail(int length)
  • Method Details

    • copy

      public Trail copy()
    • width

      public float width()
    • clear

      public void clear()
    • size

      public int size()
    • drawCap

      public void drawCap(Color color, float width)
    • draw

      public void draw(Color color, float width)
    • shorten

      public void shorten()
      Removes the last point from the trail at intervals.
    • update

      public void update(float x, float y)
      Adds a new point to the trail at intervals.
    • update

      public void update(float x, float y, float width)
      Adds a new point to the trail at intervals.