Support Forum

Having issues where agents occasionally get stuck on sharp corners

Hi there! I’m using a recast graph, RVO, and the ‘Constraint Inside Graph’ option and I noticed that occasionally my agents (especially when other agents are around) get stuck being unable to turn around a corner.

If the corner is very sharp (90 degrees for example) they sometimes just get stuck on the edge and won’t be able to make the turn.

I tried messing around with the agent radius on the Recast Graph settings and while that does help a bit it doesn’t fully resolve the issue.

Also, I don’t want to make the radius too larger since then areas I wanted to be walkable won’t be anymore.

Any other options for making an agent get unstuck?

I thought maybe I could do something like recalculate the path if the agent stops moving, but I don’t know how to make the agent take a wider path.

I feel like the issue is that the chosen path is just too close to the edge of the graph.

Hi, I’m having the exact same issue with “Constraint Inside Graph” with a Grid Graph. The agents often get stuck on sharp corners. Could you find any solution for it?