Function ABPath.RefreshPathEndpoints
Refreshes the start and end points of the path.
Public
void RefreshPathEndpoints (
start | ||
end |
Refreshes the start and end points of the path.
Useful if the agent has moved significantly since the path was requested.
If the path has not yet been processed by the pathfinding system, the start and end points will be updated immediately. If the path is being calculated or has been calculated, this function will do nothing.
A common way is to call this function once per frame until the path has been calculated, with the most up-to-date positions of the agent and the target.