Computer Science Canada

Need Help With collisions

Author:  d2bb [ Thu Jan 25, 2007 2:45 pm ]
Post subject:  Need Help With collisions

k well i got circle vs circle collision down.


but i cant find any tutorials on :


circle to line detection


circle to rectangle detection



Thanks Smile

-if i didnt state anything clearly enough pm me and ill edit post Smile thx.

Author:  agnivohneb [ Thu Jan 25, 2007 4:00 pm ]
Post subject:  RE:Need Help With collisions

try this http://www.compsci.ca/v3/viewtopic.php?t=13661&highlight=collision

Author:  d2bb [ Thu Jan 25, 2007 6:44 pm ]
Post subject:  RE:Need Help With collisions

Nope , ive looked there nothing on line - circle or circle - rectangle collision. Sad


Ps. If it is there i guess im blind Razz

Author:  Bored [ Thu Jan 25, 2007 10:26 pm ]
Post subject:  Re: Need Help With collisions

Try looking up Math.DisatncePointLine in your Turing reference. You can then use this to find the distance between the centre of the circle and a line. If the distacne is less then or equal to the radius of the circle then they are touching.

Author:  CodeMonkey2000 [ Fri Jan 26, 2007 7:53 pm ]
Post subject:  Re: Need Help With collisions

I like diagrams, do you like diagrams? Well here ya go! This only shows line to circle collision, but you can use that to figure the rest out Razz

Author:  d2bb [ Sun Jan 28, 2007 1:23 pm ]
Post subject:  RE:Need Help With collisions

Looks like you scanned that onto Comp sci Smile



and i must say best font eva Smile ty very much spearmonkey and bored hopefully i can figure it out now Smile and summit my soccer game finally Razz


: