mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-21 22:20:31 +02:00
smaller CCD proxy for MyAvatar
This commit is contained in:
parent
1beafbdd35
commit
b7ae55ca3e
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ void CharacterController::addToWorld() {
|
||||||
_rigidBody->setCollisionFlags(btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK);
|
_rigidBody->setCollisionFlags(btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK);
|
||||||
|
|
||||||
// enable CCD
|
// enable CCD
|
||||||
_rigidBody->setCcdSweptSphereRadius(2.0f * (_radius + _halfHeight));
|
_rigidBody->setCcdSweptSphereRadius(_halfHeight);
|
||||||
_rigidBody->setCcdMotionThreshold(_radius);
|
_rigidBody->setCcdMotionThreshold(_radius);
|
||||||
|
|
||||||
btCollisionShape* shape = _rigidBody->getCollisionShape();
|
btCollisionShape* shape = _rigidBody->getCollisionShape();
|
||||||
|
@ -556,7 +556,7 @@ void CharacterController::setLocalBoundingBox(const glm::vec3& minCorner, const
|
||||||
|
|
||||||
if (_rigidBody) {
|
if (_rigidBody) {
|
||||||
// update CCD with new _radius
|
// update CCD with new _radius
|
||||||
_rigidBody->setCcdSweptSphereRadius(2.0f * (_radius + _halfHeight));
|
_rigidBody->setCcdSweptSphereRadius(_halfHeight);
|
||||||
_rigidBody->setCcdMotionThreshold(_radius);
|
_rigidBody->setCcdMotionThreshold(_radius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue