Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need Help With collisions
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
d2bb




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
agnivohneb




PostPosted: 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
d2bb




PostPosted: 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
Bored




PostPosted: 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.
CodeMonkey2000




PostPosted: 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


untitled.bmp
 Description:
 Filesize:  426.2 KB
 Viewed:  116 Time(s)

untitled.bmp


d2bb




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: