Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- setPathSmoothing(int)
- getRelativeSpeed()
- setRelativeSpeed(double)
- setRelativeSpeedWaypoint(double)
- setWaypointRadius(double)
- setDebugNodes(boolean)
- shouldSmoothPath()
- setRejectionWeight(double)
- setBlendHeading(double)
- getCurrentWaypoint()
- getCurrentWaypointPosition()
- getNextWaypoint()
- getNextWaypointPosition()
- setPath(IWaypoint, Vector3d)
- clearPath()
- pathInFinalStage()
- freezeWaypoint()
- isWaypointFrozen()
- setWaypointFrozen(boolean)
- executePath(Vector3d, MotionController, Steering)
- computeRejection(Vector3d, Vector3d, MotionController)
- updateCurrentTarget(Vector3d, MotionController)
- smoothPath(Ref, Vector3d, MotionController, ProbeMoveData, ComponentAccessor)
Class PathFollower
java.lang.Object
com.hypixel.hytale.server.npc.navigation.PathFollower
- Since:
- 2018-09-25
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcomputeRejection(org.joml.Vector3d currentPosition, org.joml.Vector3d target, MotionController activeMotionController) voidexecutePath(org.joml.Vector3d currentPosition, MotionController activeMotionController, Steering desiredSteering) booleanorg.joml.Vector3dorg.joml.Vector3ddoublebooleanbooleanvoidsetBlendHeading(double blendHeading) voidsetDebugNodes(boolean debugNodes) voidvoidsetPathSmoothing(int pathSmoothing) voidsetRejectionWeight(double rejectionWeight) voidsetRelativeSpeed(double relativeSpeed) voidsetRelativeSpeedWaypoint(double relativeSpeedWaypoint) voidsetWaypointFrozen(boolean waypointFrozen) voidsetWaypointRadius(double waypointRadius) booleanvoidsmoothPath(Ref<EntityStore> ref, org.joml.Vector3d position, MotionController motionController, ProbeMoveData probeMoveData, ComponentAccessor<EntityStore> componentAccessor) booleanupdateCurrentTarget(org.joml.Vector3d entityPosition, MotionController motionController)
-
Constructor Details
-
PathFollower
public PathFollower()
-
-
Method Details
-
setPathSmoothing
public void setPathSmoothing(int pathSmoothing) -
getRelativeSpeed
public double getRelativeSpeed() -
setRelativeSpeed
public void setRelativeSpeed(double relativeSpeed) -
setRelativeSpeedWaypoint
public void setRelativeSpeedWaypoint(double relativeSpeedWaypoint) -
setWaypointRadius
public void setWaypointRadius(double waypointRadius) -
setDebugNodes
public void setDebugNodes(boolean debugNodes) -
shouldSmoothPath
public boolean shouldSmoothPath() -
setRejectionWeight
public void setRejectionWeight(double rejectionWeight) -
setBlendHeading
public void setBlendHeading(double blendHeading) -
getCurrentWaypoint
-
getCurrentWaypointPosition
@Nullable public org.joml.Vector3d getCurrentWaypointPosition() -
getNextWaypoint
-
getNextWaypointPosition
@Nullable public org.joml.Vector3d getNextWaypointPosition() -
clearPath
public void clearPath() -
pathInFinalStage
public boolean pathInFinalStage() -
freezeWaypoint
public boolean freezeWaypoint() -
isWaypointFrozen
public boolean isWaypointFrozen() -
setWaypointFrozen
public void setWaypointFrozen(boolean waypointFrozen) -
executePath
public void executePath(@Nonnull org.joml.Vector3d currentPosition, @Nonnull MotionController activeMotionController, @Nonnull Steering desiredSteering) -
computeRejection
public void computeRejection(@Nonnull org.joml.Vector3d currentPosition, @Nonnull org.joml.Vector3d target, @Nonnull MotionController activeMotionController) -
updateCurrentTarget
public boolean updateCurrentTarget(@Nonnull org.joml.Vector3d entityPosition, @Nonnull MotionController motionController) -
smoothPath
public void smoothPath(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nonnull MotionController motionController, @Nonnull ProbeMoveData probeMoveData, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-