Class PathFollower
java.lang.Object
com.hypixel.hytale.server.npc.navigation.PathFollower
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected IWaypointprotected doubleprotected booleanprotected final Vector3dprotected PathFollower.FrozenWaypointprotected booleanprotected final Vector3dprotected intprotected final Vector3dprotected final Vector3dprotected doubleprotected doubleprotected doubleprotected booleanprotected final Vector3dprotected final Vector3dprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanMoveTo(Ref<EntityStore> ref, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, Vector3d position, Vector3d targetPosition, ProbeMoveData probeMoveData, ComponentAccessor<EntityStore> componentAccessor) voidvoidcomputeRejection(Vector3d currentPosition, Vector3d target, com.hypixel.hytale.server.npc.movement.controllers.MotionController activeMotionController) voidexecutePath(Vector3d currentPosition, com.hypixel.hytale.server.npc.movement.controllers.MotionController activeMotionController, Steering desiredSteering) booleandoublebooleanbooleanvoidsetBlendHeading(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, Vector3d position, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, ProbeMoveData probeMoveData, ComponentAccessor<EntityStore> componentAccessor) booleanupdateCurrentTarget(Vector3d entityPosition, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController)
-
Field Details
-
currentWaypoint
-
currentWaypointDistanceSquared
protected double currentWaypointDistanceSquared -
frozenWaypoint
-
isWaypointFrozen
protected boolean isWaypointFrozen -
lastWaypointPosition
-
direction
-
tempVector
-
tempPath
-
projection
-
rejection
-
pathSmoothing
protected int pathSmoothing -
blendHeading
protected double blendHeading -
relativeSpeed
protected double relativeSpeed -
relativeSpeedWaypoint
protected double relativeSpeedWaypoint -
waypointRadius
protected double waypointRadius -
rejectionWeight
protected double rejectionWeight -
waypointRadiusSquared
protected double waypointRadiusSquared -
debugNodes
protected boolean debugNodes -
shouldSmoothPath
protected boolean shouldSmoothPath
-
-
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
-
getNextWaypoint
-
getNextWaypointPosition
-
clearPath
public void clearPath() -
pathInFinalStage
public boolean pathInFinalStage() -
freezeWaypoint
public boolean freezeWaypoint() -
isWaypointFrozen
public boolean isWaypointFrozen() -
setWaypointFrozen
public void setWaypointFrozen(boolean waypointFrozen) -
executePath
-
computeRejection
-
updateCurrentTarget
public boolean updateCurrentTarget(@Nonnull Vector3d entityPosition, @Nonnull com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController) -
smoothPath
public void smoothPath(@Nonnull Ref<EntityStore> ref, @Nonnull Vector3d position, @Nonnull com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, @Nonnull ProbeMoveData probeMoveData, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
canMoveTo
protected boolean canMoveTo(@Nonnull Ref<EntityStore> ref, @Nonnull com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, @Nonnull Vector3d position, @Nonnull Vector3d targetPosition, @Nonnull ProbeMoveData probeMoveData, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-