How to fix indecisive Navmesh Agent?
One of my Navmesh agent goes three quarters of the way to its destination and then it goes hay wire. It cannot make up its mind between to seperate paths that will take it to the destination. It quickly rotates left/right like its gone insane. I can see on the Navmesh the two paths (indicated by arrows) it can't choose between.
Does anyone have an explanation for why this may be happening and the solution. Do I need to write code that detects indecisive agents and resets them somehow? Is that even possible to do this?
I should also mention that there is no other navmesh agent between this one and its destination. So the source of the problem is Not another navmesh agent competing with the indecisive one. Also, this problem is very intermittent. I happens every time I run a particular build but if I change the navmesh or the agents then the problem will go away but it will resurface in the future. Moore's Law.
Thank you
Your answer
Follow this Question
Related Questions
Navmesh, help setting position to nearest tag? (Javacript) 0 Answers
NavMesh Agent changing Model Rotation 2 Answers
Are nav mesh agents not supposed to find the path when getting stuck in other nav mesh agents ? 1 Answer
How do I make an animated AI enemy float but still move using NavMesh? 2 Answers