Dear Mr Hwang

I would like to understand how you approached about solving the collision problem. Did you use any sort of standard algorithm so that I go and read the right resource?

If not could you please explain to me how you solve the velocity after collision?

Thank you in advance.