How to stop Ai from walking into walls and getting stuck?

Hay folks,
I need a hand working out why my navmesh isn’t allowing my ai to move to the player, they get stuck in places instead of finding a path around to the objective.

  1. Who is they?

  2. Maybe you didn’t set Navmesh/AIController/MoveTo func properly

By they I meant my AI, it was working until I changed some setting to make the navmesh behave better on stairs, now the enemy ai doesnt pathfind like it should. no option to restore defaults on navmesh, so I need to know what settings to change to change the navmesh back to its default values.

ok so the way I solved this was to increase the agent radius on my navigation mesh and also change how my ai behaved by making the ai move to a random point in a radius of 9999 from its location using the aimoveto node and get random location in radius node whenever the aimoveto node failed, this way if the ai get stuck it will move away from the area it got stuck and try to move where it was meant to go to begin with.
probably a better way to solve it, but this was my workaround.

1 Like

Here’s the Nav Defaults

287960-nav-defaults.png

1 Like

obviously the AI. learn to read