The mouse can’t quite get close enough to his randomly selected destination
I check every frame if the point is reachable - in this case it is not reachable, but my code is returning that it is reachable. As a result the mouse doesn’t move. This is due to rounding caused by AstarPath.active.GetNearest()
One way to fix this is whenever I ask to move to a particular path, I move the endpoint to the result of AstarPath.active.GetNearest. However, that isn’t the best option because it means the AI would always be snapped and not able to move to exact locations.
Is there a better implementation I can use to determine if the destination of the current path is reachable?