Enemies dragging each other away

Whenever my enemies collide with each other around a waypoint, the first one will stop moving while the second one will "drag" it backwards. The colliders are capsules.

Why does this happen and how can I prevent it?

Is it something in the model itself or the colliders?

I tried this code but it didn't work:

function Start()
{
var zombies = GameObject.FindWithTag("Enemy");
Physics.IgnoreCollision(zombies.collider, collider);

}

1 Answer

1

You could use Layer-Based Collision Detection.

I tried that, but to no success.