How to avoid two NavMeshAgent push away each other in Unity?

Cosmore picture Cosmore · May 4, 2014 · Viewed 19.4k times · Source

In my game, all player and monster characters have a NavMeshAgent component, when one character moves to another, it will push away the second one.

I read the unity docs of NavMeshAgent, found the problem is affected by Obstacle Avoidance Type and Avoidance Priority, I have tried this, but still cannot have a perfect solution, I need the characters DO NOT push each other away and still take others as obstacles.

Please give me some advice how to use NavMeshAgent well and resolve this problem. thanks in advance.

Answer

vexe picture vexe · Jan 6, 2015

Give this article a try, it helped me, should help you too: Pathfinding and Local Avoidance for RPG/RTS Games using Unity