for whatever reason, the threejs one always gets stuck for me. try going to the top of the platform and then back down, the ball gets stuck at the bottom of the stairs for me. the babylon one doesn’t. always chucked it up to threejs people arbitrarily changing shit they didnt write. maybe the patroljs version can give some insight, idk.
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. getAgentStateICrowd | Babylon.js Documentation returns 1 when everything is OK. and 0 when stuck.