
-----------------------------------
Hotaru
Sun May 02, 2004 11:47 am

How to create collisions~?
-----------------------------------
~this is for my final project~to make collisions~what variables are needed~?

-----------------------------------
omni
Sun May 02, 2004 11:51 am


-----------------------------------
a whole bunch of variables.... have you thought out how start programming your code, or planned at all?

-----------------------------------
Tony
Sun May 02, 2004 12:15 pm

Re: How to create collisions~?
-----------------------------------
what variables are needed~?
well you need couple of intergers per object and maybe a boolean or two :lol:

-----------------------------------
Paul
Sun May 02, 2004 12:53 pm


-----------------------------------
Collision? what do u mean?
like how to tell if something's hit another something?
then u need int variables for the x and y coordinates of your something, to compare with the x and y coordinates of another something, then compare them to make sure the somethings do hit something.
Clear?  :lol:

-----------------------------------
MyPistolsIn3D
Sun May 02, 2004 1:20 pm


-----------------------------------
Math collison detect:
http://www.compsci.ca/v2/viewtopic.php?t=75&highlight=collision

WhatdotColor collision detect:
http://www.compsci.ca/v2/viewtopic.php?t=2381&highlight=collision

-----------------------------------
GreenTiger
Sun May 02, 2004 3:55 pm


-----------------------------------
'course, if you mean collisions between two objects, that's a little differant.  You need to detect the collission (see above replies) and then you gotta decide what to do.  In the end, most people make the two colliding objects stop where they collided or bounce right back for a while.  If you want anything more complex, you're gonna need to know some gr 12 physics; Kinemetics, Dynamics and Collisions...

By far, THE best site for that info is this;

http://www.euclideanspace.com/physics/kinematics/

Hope you passed gr 10 math (at the very least). it's quite the read. lol
