Advertisement

Circle Collisions

Started by September 14, 2000 07:39 PM
2 comments, last by thickinthehead 24 years, 3 months ago
Hi guy''s well i guess you know everything, so i thought id ask here?! How exactly do i detect the angle at which one circle collides with another!? Any input is greatly appreciated!!
Hi.

With those 2 circles you make a triangle, being the first 2 points the centers of each circle, and the third point a combination of one of the circle''s Y coordinate and the other circle''s X coodinate. From there just determine the angle of the trianle corner (yes, totally wrong term, but I forgot the correct one ) depending on the circle with respect to which you want to determine collision angle.

And of course, you first need to determine collision by comparing the distance between the 2 circle centers to the sum of each circle''s radius.

I think the angle thingy has to do with hipothenuse and adjacent sides, man I need a refresher on this real bad

Topgoro


;You are not a real programmer until you start all your sentences with a semicolon
We emphasize "gotoless" programming in this company, so constructs like "goto hell" are strictly forbidden.
Advertisement
They have a good description of a sphere-sphere sweep test here.

http://www.gamasutra.com/features/19991018/Gomez_7.htm
if yer looking for code and a short explaination then check it out:
http://workspot.net/~kondor/tutors/dos/colldet.html#point_in_circ

good luck

This topic is closed to new replies.

Advertisement