
-----------------------------------
d2bb
Thu Jan 25, 2007 2:45 pm

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 :)

-if i didnt state anything clearly enough pm me and ill edit post :) thx.

-----------------------------------
agnivohneb
Thu Jan 25, 2007 4:00 pm

RE:Need Help With collisions
-----------------------------------
try this http://www.compsci.ca/v3/viewtopic.php?t=13661&highlight=collision

-----------------------------------
d2bb
Thu Jan 25, 2007 6:44 pm

RE:Need Help With collisions
-----------------------------------
Nope , ive looked there nothing on line - circle or circle - rectangle collision. :(


Ps. If it is there i guess im blind :P

-----------------------------------
Bored
Thu Jan 25, 2007 10:26 pm

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.

-----------------------------------
CodeMonkey2000
Fri Jan 26, 2007 7:53 pm

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 :P

-----------------------------------
d2bb
Sun Jan 28, 2007 1:23 pm

RE:Need Help With collisions
-----------------------------------
Looks like you scanned that onto Comp sci :)



and i must say best font eva :) ty very much spearmonkey and bored hopefully i can figure it out now :) and summit my soccer game finally :P
