bug ball collision

Hello,

I have a problem with my script

if two balls collide in opposite direction it happens

but…

someone can help me ?

i’m using this code:

void OnCollisionEnter(Collision collision)
	{
		Vector3 normal;

		if (collision.collider.name == "Ball") {
		    normal = collision.contacts[0].normal;
	            velocity = Vector3.Reflect(velocity, normal);
		} 


	}

Seeing as your screenshots appear to show “real life” behaviour, why not remove the OnCollisionEnter completely and let the physics engine calculate the collision response automatically?