Monster stuck in sharp corners of graph

  • A* version: [5.3.7]
  • Unity version: [2022.3.43f]
    image

Hello there! I have a problem with monsters stucking in sharp corners of graph. The gizmos showing the right way, but monsters still stuck on the corners. How can i fix it?

Off the top of my head maybe a Funnel modifier would help here? When/how are they getting stuck here? Feel free to post graph/agent settings

Thanks for advice! Funnel modifier didn’t really helped, monsters start to run in obstacles and stuck more often. But it helped to find perfect modifier to resolve this problem.

I found two solutions:

  1. decrease node size in Grid graph. It’s working, but increase size of the project.
  2. RadiusModifier it helps to avoid stuck problem.

Also check if you are using the AIPath movement script, then your “Pick Next Waypoint Distance” might be a bit too low.