Navmesh - Agent stuck with dynamic obstacle

That’s by design. The program should detect and handle these edge cases. For example, killing the agent when a door closes on him. Or not allowing to close the door. It all depends on the use case.
Anyway, there is a way to detect agent is stuck. getAgentState ICrowd | Babylon.js Documentation returns 1 when everything is OK. and 0 when stuck.

2 Likes