Jump to content
  • Advertisement
Sign in to follow this  
Fuzzy Wuzzy bmp

2D concave-concave polygon collision detection

This topic is 3171 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 am using a variation on a static quadtree for broad-phase pruning, but I'm not sure how to handle concave-concave collision detection. Obviously I first split the concave polygons into several convex sub-polygons, but now I want to avoid doing m*n convex-convex intersection tests. I was thinking that I could implement a bounding-box hierarchy to contain my object - first 1 big AABB, which contains 2 smaller AABBs, that contain 2 even smaller ones etc., until at the final level, each AABB would only contain one convex sub-polygon. To test if a given point is inside the object, it would 1st check the largest AABB, and if it was inside, it would check the two contained AABB's, and so on, checking only the sub-AABB's of the AABB's it intersects. I guess what I'm asking is, is there a faster/more elegant/better method? And what are the draw-backs of this method? Keep in mind the concave polygons will be potentially huge and very complex, rotating and moving all the time, and it is likely they will cluster together into a pile, however, even that pile will keep on moving-rotating (everything is basically in space, and the clustering will be due to gravitational attraction between the objects). Thanks, and toodles.

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.

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!