Collision detection with curves

Posted by paldepind on Game Development See other posts from Game Development or by paldepind
Published on 2012-09-27T15:33:10Z Indexed on 2012/09/27 15:52 UTC
Read the original article Hit count: 555

I'm working on a 2D game in which I would like to do collision detection between a moving circle and some kind of static curves (maybe Bezier curves).

Currently my game features only straight lines as the static geometry and I'm doing the collision detection by calculating the distance from the circle to the lines, and projecting the circle out of the line in case the distance is less than the circles radius.

How can I do this kind of collision detection in a relative straightforward way? I know for instance that Box2D features collision detection with Bezier curves. I don't need a full featured collision detection mechanism, just something that can do what I've described.

© Game Development or respective owner

Related posts about collision-detection

Related posts about beziers