Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
How to create collisions~?
Author Message
Hotaru

Posted: 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~?

omni

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

Posted: 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
Tony's programming blog. DWITE - a programming contest.
Paul

Posted: 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?
MyPistolsIn3D

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

Posted: 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: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 6 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: