How to avoid two NavMeshAgent push away each other

2019-04-09 04:27发布

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.

2条回答
爷的心禁止访问
2楼-- · 2019-04-09 05:19

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

查看更多
三岁会撩人
3楼-- · 2019-04-09 05:29

I personally have't tried this method, but it can help you. http://forum.unity3d.com/threads/navmesh-and-raycast-obstacle-avoidance.135090/

查看更多
登录 后发表回答