Function PathTracer.SetEmptyAndUnrepairable
Marks the current path's end point as being unrepairable, and clears the whole path except the first node.
void SetEmptyAndUnrepairable ()
Marks the current path's end point as being unrepairable, and clears the whole path except the first node.
This is used when the agent should stay attached to the navmesh, but stop following whatever path it was following. For example when a path request was just completed, but it completed with an error.
Some effects:
EstimateRemainingPath will return zero.
The CalculateNextCorners will just return the current position,
isStale will be true.
RepairEnd will do nothing.
RepairStart will still function as normal, but the path will always consist of at most a single node which contains the start point.
Whenever a new path is set on this instance, the unrepairable state will be cleared.