Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 925
Cosmore Avatar asked May 04 '14 02:05

Cosmore


1 Answers

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

like image 142
vexe Avatar answered Sep 27 '22 18:09

vexe