This question is specifically about dealing with the Recast Navigation library.
I have added an agent with
addAgent and set its target with
When agent reaches its destination, it stops, but when being pushed out of the way (by another agent) it will try to return back to its target. Instead, want it to stop and become idle, so that when other agent walking by push it aside and it wont return back.
I have tried calling
agent.npos being close to
agent.targetPos (as if agent has reached its destination), but that seems to break the inner logic of the crowd simulation - the agent would just keep walking in old direction, never stopping.
How do I properly tell an agent to stop and become idle (yet pushable) in RecastNavigation?