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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleFields inherited from class com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceWithTarget
selfPosition, targetPosition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubledoubledoublevoidsetDistances(double slowdown, double stop) voidsetFalloff(double falloff) voidsetSlowdownDistance(double slowdownDistance) voidsetStopDistance(double stopDistance) Methods inherited from class com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceWithTarget
getSelfPosition, getTargetPosition, setComponentSelector, setPositions, setSelfPosition, setSelfPosition, setTargetPosition, setTargetPosition
-
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
- Specified by:
computein interfaceSteeringForce- Overrides:
computein classSteeringForceWithTarget
-
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)
-