Two AI through a narrow space

Hi there!

I’m wondering if there’s a way to handle two AI attempting to go through a narrow space at the same time. I had (foolishly) thought that that’s something RVO took care of, but since implementing it I’ve seen that that’s not the case.

Basically I can set two AI to go to the same point and they both move towards the door and get stuck (as the door isn’t wide enough for two). Is there a way around this? Or does this fall outside of pathfinding/RVO?

Hi

Not really at the moment. RVO is an algorithm which will make both participants in a future collision take responsibility for an equal amount of avoidance. Unfortunately if they are both trying to get to the same spot, they will push each other away equally. You might be able to adjust their priorities dynamically to make sure that one agent will always be prioritized above the other agent when passing through a narrow gap. However this is nothing that is included in this package.