Occasional NavMeshAgent gets stuck and goes the wrong direction
Hey everyone,
Forgive me if any part of this question is vague, I'm not really sure what is going on or how to explain it.
I'm currently working on a tower defense-style game, and I am spawning game objects using a wave spawner script that has worked. However, out of the 6 spawn points that I have, one of them occasionally has a bug where the spawned game object goes the wrong direction, gets stuck in the corner for about 20 seconds, then eventually finds its way to its actual destination. I have verified that all game objects spawned have the same destination. It is interesting that it never seems to happen to the first object that is spawned.
Here is a visualization of the bug: https://imgur.com/a/KYYmn
Here is the navmesh if that helps: https://imgur.com/2TH8vs7
Let me know if there is any other information you need. Thanks!
Answer by lukaodzelashvili · Oct 17, 2020 at 03:22 PM
i dont have the answer for it and i have same problem did u fixed it? its really annoying when that happens