Class SmoothMovementUtil

java.lang.Object
com.fs.starfarer.api.util.SmoothMovementUtil

public class SmoothMovementUtil extends Object
  • Field Details

    • vel

      protected org.lwjgl.util.vector.Vector2f vel
    • loc

      protected org.lwjgl.util.vector.Vector2f loc
    • accel

      protected org.lwjgl.util.vector.Vector2f accel
    • dest

      protected org.lwjgl.util.vector.Vector2f dest
    • destVel

      protected org.lwjgl.util.vector.Vector2f destVel
    • acceleration

      protected float acceleration
    • maxSpeed

      protected float maxSpeed
    • smoothCap

      protected boolean smoothCap
    • hardSpeedLimit

      protected float hardSpeedLimit
  • Constructor Details

    • SmoothMovementUtil

      public SmoothMovementUtil()
  • Method Details

    • getHardSpeedLimit

      public float getHardSpeedLimit()
    • setHardSpeedLimit

      public void setHardSpeedLimit(float hardSpeedLimit)
    • setDest

      public void setDest(org.lwjgl.util.vector.Vector2f dest, org.lwjgl.util.vector.Vector2f destVel)
    • advance

      public void advance(float amount)
    • getAccelVector

      public org.lwjgl.util.vector.ReadableVector2f getAccelVector()
    • getAcceleration

      public float getAcceleration()
    • setAcceleration

      public void setAcceleration(float acceleration)
    • getMaxSpeed

      public float getMaxSpeed()
    • setMaxSpeed

      public void setMaxSpeed(float maxSpeed)
    • getVelocity

      public org.lwjgl.util.vector.Vector2f getVelocity()
    • getLocation

      public org.lwjgl.util.vector.Vector2f getLocation()
    • getDest

      public org.lwjgl.util.vector.Vector2f getDest()