PSA - astar HasArrived() should be changed to use reachedDestination;

bbjones

Member
Noted in this post over on the astar forums:

It sounds like the HasArrived check uses the older ai.reachedEndOfPath property instead of the newer ai.reachedDestination property which was specifically introduced in 4.2 to solve these kinds of issues.

Code change in IAstarAIMovement
C#:
        protected override bool HasArrived()
        {
            return agent.reachedDestination;
            //return !agent.pathPending && (agent.reachedEndOfPath || !agent.hasPath);
        }
 
Top