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.
Give this article a try, it helped me, should help you too: Pathfinding and Local Avoidance for RPG/RTS Games using Unity
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With