public void SetSafeMargin(ref IndexedVector3 halfExtents, float defaultMarginMultiplier) { //see http://code.google.com/p/bullet/issues/detail?id=349 //this margin check could could be added to other collision shapes too, //or add some assert/warning somewhere float minDimension=halfExtents[halfExtents.MinAxis()]; SetSafeMargin(minDimension, defaultMarginMultiplier); }