mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
Update CCD motion threshold
This commit is contained in:
parent
75f4ae97c6
commit
510189dfbc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue