Contents
Class RailPathSmoother
java.lang.Object
com.hypixel.hytale.server.npc.movement.controllers.RailPathSmoother
Step-1 replacement smoother that follows probeMove data directly.
2D behavior is intentionally minimal:
- Emit initial waypoint.
- For horizontal transition chains emit one waypoint at the chain start.
- For every vertical transition emit start and end waypoints.
- Always emit final waypoint.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.joml.Vector3d[]voidreset()voidsetDebug(boolean debug) voidsmooth(ProbeMoveData data, MotionController motionController, RailPathSmoother.Config config, RailPathSmoother.ContactContext contactContext)
-
Constructor Details
-
RailPathSmoother
public RailPathSmoother() -
RailPathSmoother
public RailPathSmoother(int initialCapacity)
-
-
Method Details
-
reset
public void reset() -
setDebug
public void setDebug(boolean debug) -
getWaypoints
@Nonnull public org.joml.Vector3d[] getWaypoints() -
getWaypointCount
public int getWaypointCount() -
getWaypointSegmentCommitTypes
-
smooth
public void smooth(@Nonnull ProbeMoveData data, @Nonnull MotionController motionController, @Nonnull RailPathSmoother.Config config, @Nullable RailPathSmoother.ContactContext contactContext)
-