Class SteeringForcePursue

java.lang.Object
com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceWithTarget
com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForcePursue
All Implemented Interfaces:
SteeringForce

public class SteeringForcePursue extends SteeringForceWithTarget
  • Field Details

    • stopDistance

      private double stopDistance
    • slowdownDistance

      private double slowdownDistance
    • falloff

      private double falloff
    • invFalloff

      private double invFalloff
    • squaredStopDistance

      private double squaredStopDistance
    • squaredSlowdownDistance

      private double squaredSlowdownDistance
    • distanceDelta

      private double distanceDelta
  • Constructor Details

    • SteeringForcePursue

      public SteeringForcePursue()
    • SteeringForcePursue

      public SteeringForcePursue(double stopDistance, double slowdownDistance)
  • Method Details

    • setDistances

      public void setDistances(double slowdown, double stop)
    • compute

      public boolean compute(@Nonnull Steering output)
      Specified by:
      compute in interface SteeringForce
      Overrides:
      compute in class SteeringForceWithTarget
    • getStopDistance

      public double getStopDistance()
    • setStopDistance

      public void setStopDistance(double stopDistance)
    • getSlowdownDistance

      public double getSlowdownDistance()
    • setSlowdownDistance

      public void setSlowdownDistance(double slowdownDistance)
    • getFalloff

      public double getFalloff()
    • setFalloff

      public void setFalloff(double falloff)