As you can see the image my enemy (when following my player), penetrate each other. How can i avoid it? I am using NevMeshagent to follow the player.
void Update () {
currentNavMeshAgent.destination = player.transform.position;
}
I have added a Rigidbody and a Collider to my enemy object but they are still penetrating each other
Answer
To avoid penetration, increase each NavMeshAgent's radius so it's equal to or larger than your agent's collider.
No comments:
Post a Comment