Computer Science Canada

How to create collisions~?

Author:  Hotaru [ Sun May 02, 2004 11:47 am ]
Post subject:  How to create collisions~?

~this is for my final project~to make collisions~what variables are needed~?

Author:  omni [ Sun May 02, 2004 11:51 am ]
Post subject: 

a whole bunch of variables.... have you thought out how start programming your code, or planned at all?

Author:  Tony [ Sun May 02, 2004 12:15 pm ]
Post subject:  Re: How to create collisions~?

Hotaru wrote:
what variables are needed~?

well you need couple of intergers per object and maybe a boolean or two Laughing

Author:  Paul [ Sun May 02, 2004 12:53 pm ]
Post subject: 

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? Laughing

Author:  MyPistolsIn3D [ Sun May 02, 2004 1:20 pm ]
Post subject: 

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

Author:  GreenTiger [ Sun May 02, 2004 3:55 pm ]
Post subject: 

'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


: