- Home /
Question by
kevojo · May 10, 2017 at 05:59 PM ·
navmeshnavmeshagentpathfindingnavigation
How do I fix two NavMeshAgents fighting for the same position?
If two NavMeshAgents have been directed to the same x,z position, they sit there jostling back and forth for it forever. Can anyone tell me a feasible way to stop this behavior?
Comment
Answer by RF008 · May 11, 2017 at 02:13 PM
you need to take all the agents in an array and then set the destination offset of 2 so they will not fight for the same position.
Thanks for the reply. That seems like it would work in the case that they are all selected in one selection, then directed to the position. What about if I selected one, directed it to a position, and then selected another one separately and directed it to the same position?
Thanks