Crowd Agents Bug

Agents movements gets messed up when you switch to another tab (blur tab/browser).
To reproduce that

As i know @Cedric is working on the navmesh/crowd

Edit: Maybe i had to specify that i am using electron with disabled background throttling and this still happens.

Hi @Nevergrind

I can reproduce the issue but I have no good workaround for now.
It looks like the navigation doesn’t update the path segment to use and agents keep going the same direction. It might be because of a big delta time time when tab is switched back. I’m investigating.

PR set/get delta step and step count for navigation tick update by CedricGuillemet · Pull Request #9372 · BabylonJS/Babylon.js · GitHub

@Cerdic Nice, it’s working as a charm.

1 Like