Jump to content
  • Advertisement
Sign in to follow this  

collision detection: arc vs obb (2d)

This topic is 4228 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 was wondering if anyone has an implementation or advice on collision between an arc segment and an OBB in 2D. It would be the arc of a circle, specified by the central angle and a rotation. The arc could have a 'sided' vector specifying which way collisions should be projected out. I would need a test that gave penetration depth. Also, although I'm just assuming it's more difficult, a bezier segment would be just as good. It seems the arc segment is very easy to grasp, and flexible, as a surface, as opposed to the control points of a bezier curve. Basically want something to use to build curved terrain in a 2D physics sim. My other primitives are OBBs as I mentioned, and circles. TIA.

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!