Contents
Class TargetContactSamplePlanner
java.lang.Object
com.hypixel.hytale.server.npc.movement.controllers.TargetContactSamplePlanner
Plans contact sample distances around a target hit distance on the probe polyline.
The caller reuses scratch/arrays to keep this hot-path allocation-free.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intplanSamples(ProbeMoveData probeMoveData, double targetDistance, double wallOffset, double maxProbeDistance, double sampleDistanceEpsilon, TargetContactSamplePlanner.Scratch scratch, double[] sampleDistances, RailPathSmoother.HitSide[] sampleSides)
-
Field Details
-
MAX_SAMPLES
public static final int MAX_SAMPLES- See Also:
-
-
Method Details
-
planSamples
public static int planSamples(@Nonnull ProbeMoveData probeMoveData, double targetDistance, double wallOffset, double maxProbeDistance, double sampleDistanceEpsilon, @Nonnull TargetContactSamplePlanner.Scratch scratch, @Nonnull double[] sampleDistances, @Nonnull RailPathSmoother.HitSide[] sampleSides)
-