A* Pathfinding Project

AI randomly walks through unwalkable nodes and walls


#1

Hi! When units move in large groups and get pushed away from each other they can randomly start moving where they normally cant. Each unit uses AIPath and RVOController components. There is a single grid graph in the scene. I made a video, where you can see what is happening and how the graph looks like with all the towers built.

Is there anything i can do to prevent this?


#2

Hi

If you are using the AIPath script I would recommend that you enable the ‘constrain inside graph’ toggle. That will prevent the agents from being pushed outside the graph borders.

See https://arongranberg.com/astar/docs/aipath.html#constrainInsideGraph