Given a low(ish) obstacle that the AI is unable to step over, it keeps trying to path across it to reach the player, rather than path around it
Solutions:
Make the obstacle taller (that would ruin level design)
Use a NavModifier to block out the NavMesh on the obstacle (a lot of effort, plus it would stop any enemy at all from being able to walk ontop of the obstacle - perhaps it’s a ledge some other enemies can reach)
The navmesh shows there is no path from the floor to the top of the obstacle but it still tries to path across it, a screenshot of the nav mesh is: https://puu.sh/rWDg3/ad2d23589c.jpg
I’ve also tried playing with the step height property to no avail
Any ideas how to fix this without the NavModifier solution would be great
It seems your navmesh agent radius size is too small. It needs to match (or be bigger than) AI agent’s collision radius. Otherwise (like seen on the video) AI will run into obstacles because navmesh tells them they should be able to fit.
So I’ve done some testing, no matter what I set the AI’s capsule radius to, if I set the Agent Radius in the Recast Nav Mesh to anything higher than 14, the AI fails to move. I’ve tried changing the Agent Radius in the Project Settings as well but that doesn’t seem to make a difference
Would this radius overwrite the Agent Radius property of the Recast Nav Mesh? And should it be set to the same as the AI’s capsule collider (or is it independent)?