Box & getClosestPoints

Romain Daize
Posts: 15
Joined: Tue Jan 06, 2009 10:04 am

Box & getClosestPoints

Post by Romain Daize »

Hi all,

I'm really interested by your GetClosestPoints implementation between two oriented boxes. I have found two implementation in bullet, one does not seem to be used anymore, corresponding method is called boxBoxDistance (in boxBoxDistance.h). I'd just like to know why you get rid of this implementation in your collision detection routine (cf #define USE_PE_BOX_BOX) ? do you know if this one is buggy ? simply obsolete ? non-optimal ?

The other implementation is very interesting too, but it does not report a distance between the boxes when they don't collide. This one is used by collision detection engine, it is found in btBoxBoxDetector::getClosestPoints. Finally i think this method is not correctly named as it does not report closest points between 2 non-overlapping boxes. Perhaps i missed something...

Thanks for help,

Cheers,

Romain