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

Username:   Password: 
 RegisterRegister   
 How to create collisions~?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Hotaru




PostPosted: 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~?
Sponsor
Sponsor
Sponsor
sponsor
omni




PostPosted: Sun May 02, 2004 11:51 am   Post subject: (No subject)

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




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Paul




PostPosted: Sun May 02, 2004 12:53 pm   Post subject: (No 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
MyPistolsIn3D




PostPosted: Sun May 02, 2004 1:20 pm   Post subject: (No 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
GreenTiger




PostPosted: Sun May 02, 2004 3:55 pm   Post subject: (No 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
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: