Hi there! The marbles finally collide and collide they do! (: I came across this thread, where Professor Fu-Kwun Hwang has a nice applet on collisions. If you go through the entire thread, professor Hwang explains the equations and mathematics related to elastic two-dimensional collisions.
The calculations for a collision is a mathematically involved affair, as I had mentioned in my previous post. I can’t say I fully understand the computations yet, maybe I will look into the details later (: Anyways, the marbles collide and deflect off each other pretty nicely.
I’ll let the video do the talking:
I will explain the code in my next post, gotta get up early tomorrow (: Goodnight!