Jump to content

  • Log In with Google      Sign In   
  • Create Account


d3d7 collision detection


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 16 December 1999 - 08:11 PM

how do you do collision detection and physics and stuff?

Sponsor:

#2 Facehat   Members   -  Reputation: 696

Like
Likes
Like

Posted 16 December 1999 - 01:16 PM

You need to be a bit more specific. For example, "how do I check for a collision between two triangles?" is a good question, but "how do I create a game?" is far too general.

--TheGoop


#3 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 16 December 1999 - 04:48 PM

how would i check for collision and do physics if an object is on top of a box and goes off the edge of the box. how would i make it just fall?

#4 Qoy   Members   -  Reputation: 127

Like
Likes
Like

Posted 16 December 1999 - 08:11 PM

Before you can just program that, you are going to have to know the physics formulas, and know how to do simple collision detection. The collision is simply a matter of checking if rectangle's overlap. The physics involves using the formulas for distance horizontally and vertically, and generating a vector or a point based on the calculations. I suggest you look up some physics stuff online. If I remember, the formula for the horizontal coord is distance = speed * time, so you would get the distance moved by multiplying the object's velocity times time. The vertical formula is distance = .5(9.8)time^2 for earth (9.8 is the gravitational constant for earth).

---------------------------
http://qoy.tripod.com

[This message has been edited by Qoy (edited December 17, 1999).]





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS