Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Collision detection in 3D and what to do when you collide

This topic is 6159 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

Hello all! I am trying to cme to grips with collision detection. I am somewhat new at 3D-game programming and I wonder how most FPS-type games set up the collision detection. The engine that i am using only support axis-aligned bounding boxes, spheres and lines. I am using a sphere around the top part of the character (from head to the knees roughly) and I push back the character along the direction of the closest point of all the triangles that is colliding with the sphere. After that I have a line that extends from the head down to the feet. This line pushes the character up so the feet are above the ground. With theese two intersection primitives I manage ok in a very simple world. But since I only translate away from one poly every frame I sort of "bounce" between corners for example. How do the rest of you process collisions with characters for instance? I would really appreciate if you guys could help out me and my classmates. Thans a milliion! // Daniel

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!