- What do you want to achieve? Keep it simple and clear!
Prevent AI from getting stuck on corners for waypoints it can see
- What is the issue? Include screenshots / videos if possible!
The AI pathfinding creates waypoints correctly for the most part, except for waypoints that it can see for some reason. The screenshot below shows that it can safely navigate around the corner above, but when it can see the destination the pathfinding creates waypoints directly to it, meaning that it is not considering the agent radius and corner the NPC is stuck on in the middle.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried making the walls thicker, changing agent radius and height, as well as the waypoint spacing. Changing the HRP size also seems to not work. Agent parameters seem to have no effect on the result. Technically if I moved the waypoint over so that it is more perpendicular to the doorway it would work but I would like to find a fix that does not involve this for areas I may not be able to use that as a solution.