Support Forum

How can I prevent an agent from falling off a ledge?

For reference I’m working with a recast graph and my agents are using AIPath, and RVO Controllers.

I’m having an issue where agents will sometimes fall right off the platform they’re on (and the graph as well) when turning corners or things like that.

This is especially common when I’m using a lot of agents (because of the RVO).

What is the simplest way of avoiding this? I considered adding colliders to the agents and making invisible walls, but I’d like to know if there’s any methods specifically from this asset to help with this first since using colliders would take a decent amount of setup.


The AIPath component has an option called ‘Constraint Inside Graph’ which is useful for this.

1 Like

Perfect, totally missed that, thanks!

1 Like