Computer Science Canada Colission Is Killing ME! |
Author: | Pacman [ Sun Nov 26, 2006 5:31 pm ] |
Post subject: | Colission Is Killing ME! |
Ok, im sorry guys, i may be a little retarded, but the ONLY thing i dont really understand is collsion, with circles, i cant get it, i just cant lmao, if Someone could please help me understand in a simple way i would honestly love you... cuz its driving me crazy the only thing i cant do, please, thanks guys <3 |
Author: | ericfourfour [ Sun Nov 26, 2006 6:22 pm ] | ||||
Post subject: | |||||
Use the distance formula (Math.Distance). It will give you the distance between between two points. In this case the distance between the centre of a circle and another point. If your version of Turing does not have Math.Distance then use this:
Here is an example:
It gets the distance between the centre of a circle and a point. |
Author: | Pacman [ Sun Nov 26, 2006 11:28 pm ] | ||
Post subject: | |||
well, i tried that, but just so u dont have to worry about me anymore I GOT IT i think, well it works, I made this crap program in 5 minutes so, tell me if i doing something wrong please? And, it seems to work, im also using the same formula for my actual pacman game, ty guys (LoL Try It, It Makes Me Laugh)
|
Author: | NikG [ Mon Nov 27, 2006 12:00 pm ] |
Post subject: | |
I didn't run your code, but you seem to be using colission detection (for circles) correctly. Good job. |
Author: | Prince Pwn [ Mon Nov 27, 2006 2:21 pm ] | ||
Post subject: | |||
Another thing about your code, try to memorize how to do View.Update correctly, comes in handy.
|