revert accidental CCD change

This commit is contained in:
Stephen Birarda 2015-11-30 15:52:03 -08:00
parent 361b4b80e6
commit 2acfbd0f8f

View file

@ -135,7 +135,12 @@ void ObjectMotionState::updateCCDConfiguration() {
btVector3 center;
btScalar radius;
_shape->getBoundingSphere(center, radius);
_body->setCcdMotionThreshold(radius / 4.0f);
_body->setCcdMotionThreshold(radius * RADIUS_MOTION_THRESHOLD_MULTIPLIER);
// TODO: Ideally the swept sphere radius would be contained by the object. Using the bounding sphere
// radius works well for spherical objects, but may cause issues with other shapes. For arbitrary
// objects we may want to consider a different approach, such as grouping rigid bodies together.
_body->setCcdSweptSphereRadius(radius);
} else {
// Disable CCD