Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 14 Online
OpenStudy (anonymous):

3.2 – Collision Detection of Balls Has anyone done this exercise? I've tried searching OpenStudy through Google but nothing pops up. If someone has solved it, I will have follow-up questions. Thanks. (P.S. It remains very irritating that there is no OpenStudy search engine.)

OpenStudy (anonymous):

I don't know the particular exercise as I have not done that course but collision detection of spheres can be done using Pythagorean's theorem and the radius of the balls. By Pythagoreans theorem, the distance from center of one to center of the other is the square root of the sum of of the x differences squared and y differences squared. If the sum of the two radius is greater than or equal to the above calculation then they are touching.

OpenStudy (andrew.m.higgs):

Hi JohnM, Fire away. I am sure there are quite a few people here who would be more than willing to help.

OpenStudy (anonymous):

Works in 3 dimensions as well as two, so if you know the centers of the (circles or spheres) and the radii, can easily determine if they are touching or have collided.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!