ColDet - Free 3D Collision Detection Library
Version: 1.1
This library is an effort to provide a free collision detection library for generic polyhedra. Its purpose is mainly for 3D games where accurate detection is needed between two non-simple objects.
Features:
Works on any model, even polygon soups.
Fully Portable. Compiles on windows compilers (VC, BCB) and recent versions of g++ on any platform.
Uses bounding box hierarchies for fast detection.
Uses additional triangle intersection tests for 100% accuracy.
Provides (upon request) exact point of collision, plus the pair of triangles that collided.
Supports timeout setting, to limit detection time.
Model-Model collision test.
Ray-Model collision test.
Segment-Model collision test.
Sphere-Model collision test.
Ray-Sphere and Sphere-Sphere primitive collision tests.
Released under the Library GNU Public License
Performance:
Testing on a P-II 350Mhz, using two aircraft models:
F15 (3186 polygons)
Spitfire (4812 polygons)
Worst case (close proximity) 6 ms
Average with one object standing and the other moving back and forth through and beyond the first object. (obvious collision, obvious no collision and close proximity) 1 ms
Download: (~ 163 Kb)
coldet_11.zip
http://photoneffect.com/download/coldet_11.zip
OpenGL Code Sample (+Binaries): (~ 215 Kb)
coldemo.zip
http://photoneffect.com/coldet/coldemo.zip
coldemo.tgz (Linux X11 port)
http://photoneffect.com/coldet/coldemo.tgz
AMD 2,4 512MB RAM,2x200GB hdd,GforceFX5700GT128MB