collision detection: arc vs obb (2d)
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement