[Math] 2D elastic collision equation: How does it work

collision detectionmatricesphysicsrotations

Hey so I recently started learning physics, and came upon this wonderful site that taught me how to calculate 2D collisions between two circles.

The only part I'm confused about is how the velocity vectors are translated back to the original coordinate system from the cm frame. The equation can be seen in the self-explanitory code in the picture below:

Question

(phi is the angle of the line that goes through both circle's centers)

**Why is this equation different from the first on used to rotate the points to the new 1D coordinate system? And why is the +180/2 added into the reverse rotation equation?

How is it that force only travels along the phi line? Is there a law that explains this?

Best Answer

How is it that force only travels along the phi line?

In the idealization being employed here, friction between the disks is being ignored. Therefore one of them cannot apply a force to the other except perpendicular the to shared tangent plane where the two surfaces touch. (And of course the force has to be exchanged at the point where the two bodies come into contact, so these two conditions together determine the line along which the force works).

The real world does not actually work that way, so it's not any deep law -- just a convenient assumption that allows you to ignore the fact that the balls could be spinning in addition to just moving about rectilinearly.

Related Question