Collision Points

Hello

i was wondering if someone could direct me in the right direction.I am looking for a way to determine where two objects collide with each other. for instance like a a ping pong game. if the ball hits the top of the paddle it must do “this_a” if it hits the bottom it must do “this_b” and if it hits the center it must do “this_c”. is it possible to do that in unity. i have been looking up on raycasts and i think that is what im looking for but i havent had chance to try yet. i am using 3D objects.

thanks.

Assuming both objects have a collider, you get an array of all the contact points in OnCollisionEnter in the contacts property. Unity - Scripting API: Collision.contacts