Jump to content
  • Advertisement
Sign in to follow this  
Lightz

Simple 3D collision detection?

This topic is 5204 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 need 3D collision detection. I don't exactly know much about it. Whats the simplest method to it, testing for collision of an .x object with other .x objects?

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately arbitrary mesh to arbitrary mesh collision is the hardest of all. To speed collision detection we usually make assumptions about the shapes involved, eg: they are convex or made up of boxes and spheres. Since you're new to collision detection I'd start with simple shapes first like spheres and axis aligned boxes. These will let you localise collisions betwen objects to specific areas by surrounding your meshes with these simpler objects to approximate their shape. From there on work your way up object aligned boxes and triangles which will let you further refine your collision detection and find collision points. Only when you're confident with these basics and have a good collision library to work off should you consider more general and complex collision schemes. To give yourself a kick start you might want to download a free-ware collision engine like Tokamak and have a play around with their intersection routines to start yourself thinking along the right lines. Have fun

PS: You might want to check out Magic-Software.com for some help with colliding various shapes together

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!