Circle Collisions
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement