Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualm_a_s_gp

Posted 28 September 2012 - 10:34 AM

You can get the contact point using this formula:

Pc = C - n[(C-P)dot(n)]

Pc: contact point
C: ball's center
n: the unit vector normal to the table and pointing upward
P: any point on the surface of the table

The quantity [(C-P)dot(n)] is the closest distance from the ball's center to the table. If this distance is greater than the ball's radius, there is no collision..

#1m_a_s_gp

Posted 28 September 2012 - 10:33 AM

You can get the contact point using this formula:

Pc = C - n(C-P)dot(n)

Pc: contact point
C: ball's center
n: the unit vector normal to the table and pointing upward
P: any point on the surface of the table

The quantity (C-P)dot(n) is the closest distance from the ball's center to the table. If this distance is greater than the ball's radius, there is no collision..

PARTNERS