Update CCD motion threshold

This commit is contained in:
Ryan Huffman 2015-11-17 15:08:05 -08:00
parent 75f4ae97c6
commit 510189dfbc

View file

@ -121,7 +121,7 @@ void ObjectMotionState::updateCCDConfiguration() {
btVector3 center;
btScalar radius;
_shape->getBoundingSphere(center, radius);
_body->setCcdMotionThreshold(radius * 2.0f);
_body->setCcdMotionThreshold(radius / 4.0f);
_body->setCcdSweptSphereRadius(radius);
} else {
// Disable CCD