Looking for a C++ collision detection library

esun

Platinum Member
Nov 12, 2001
2,214
0
0
I'm looking for a collision detection library written in C++ for simple convex polygons (right now only ellipses and rectangles).

I'm aware of the separating axis theorem, which would allow for an implementation of this functionality: http://en.wikipedia.org/wiki/Separating_axis_theorem

I also found a rather detailed tutorial on how to write such a library (http://www.harveycartel.org/me...orials/tutorialA.html) for various shapes.

However, rather than spend a couple hours writing the code to do this, I'd rather be able to utilize some function library and save myself the effort.
 

esun

Platinum Member
Nov 12, 2001
2,214
0
0
Thanks, but I guess I should've been more specific. I've seen most of those in my own searching, but they all detect collisions between objects formed out of triangles. I would really like something where I could pass in some simple parameters, such as a object type and bounding box (e.g. ellipse, x, y, width, height) for two objects and get a true or false out of it for a collision.

Basically, those are all too complicated for what I want to do.