How to get contact point of collision.

Making an atari breakout kind of game. The further away from the centre of the paddle the ball hits the more angle I want it to bounce off at.

Thanks.

Vector3 globalPositionOfContact = collision.contacts[0].point;

The documentation for OnCollisionEnter() gives a pretty good example: the contactPoints member of the Collision parameter gives you an array of contact points.

private void OnCollisionExit(Collision collision)
{
Debug.Log(collision.contacts.Lenght);
}
collision.contact will return you a Array with ContactPoint s Where 2 Colliders Hits At.
Research ContactPoint class at Unity docs will help you.

Come on… think about how to do it (not how the code is), but what you need to know, what you need to compare, and look at google or unity how to get that values…