I’m having massive troubles getting my AIPath agent to stop competely mid path and forget about the path.
I’ve tried this:
ai.SetPath(null); ai.canSearch = false; ai.canMove = false;
But as soon as I re-enable canSearch and canMove the AI continues down the old path. The only thing that work is:
ai.isStopped = true; ai.destination = transform.position;
But the problem with this is that it makes my character face in a random direction.
What should I do?