Jump to content
  • Advertisement
Sign in to follow this  
chaoticseedx

Collision Detection

This topic is 4642 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know a little about collision detection like the formula for sphere collision and cube collision detection but im not sure as to what i have to do with setting the d3d functions that i want to use and is using these D3DXComputeBoundingBox Function D3DXComputeBoundingSphere Function the best way to go.... I have a room with walls and a wall in the middle of the room i want the camera to not go through the walls or anything it shouldnt!!!!! Can someone send me to a good tutorial maybe thanks!!! ~Chaos

Share this post


Link to post
Share on other sites
Advertisement
The D3DX functions you mentionned will give you the bounding volumes of your geometry, but they will not perform acual collision detection and response.

There is a good tutorial about that on the Peroxide web site, called "Improved Collision Detection & Response". It is mostly about an ellipsoid that is colliding with a set of triangles, but that pretty close to what you are looking for. Your camera might as well be a small sphere (a sphere is just an ellipsoid with a uniform scaling factor) and the walls can be treated as a triangle soup.

Good luck :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!