Jump to content
  • Advertisement

Archived

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

Jonas

Open gl collision with walls

This topic is 6685 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’ve just written a small 3D engine in Opengl (You can move look up/down in s small room). But I have some trouble, I can move right through the walls. I and can’t figure out the code, because I don’t want to work with internal co-ordinates. Anyone there can help me out.

Share this post


Link to post
Share on other sites
Advertisement
First of all you must calculate planes for you walls, planes are very easy to calculate and just do a little net searching if you don''t know how to calculate them. When you have your planes you can use bounding sphere collision detection, check out the portal series on www.flipcode.com for a good tutorial on collision detection.

Greets Tobias

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
hmmm.....sounds like NeHe''s 10th tutoriol.

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!