History

smaller CCD proxy for MyAvatar

Andrew Meadows committed 7 years ago

Commit b7ae55c1 parent 1beafbd1 file · +2 −2Browse files

Showing the changes to libraries/physics/src/CharacterController.cpp (1 of 1 file). Show all

Unified · Split

libraries/physics/src/CharacterController.cpp+2−2
@@ -189,7 +189,7 @@ void CharacterController::addToWorld() { · 188 unmodified lines
189189 _rigidBody->setCollisionFlags(btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK);
190190
191191 // enable CCD
192− _rigidBody->setCcdSweptSphereRadius(2.0f * (_radius + _halfHeight));
192+ _rigidBody->setCcdSweptSphereRadius(_halfHeight);
193193 _rigidBody->setCcdMotionThreshold(_radius);
194194
195195 btCollisionShape* shape = _rigidBody->getCollisionShape();
@@ -556,7 +556,7 @@ void CharacterController::setLocalBoundingBox(const glm::vec3& minCorner, const · 360 unmodified lines
556556
557557 if (_rigidBody) {
558558 // update CCD with new _radius
559− _rigidBody->setCcdSweptSphereRadius(2.0f * (_radius + _halfHeight));
559+ _rigidBody->setCcdSweptSphereRadius(_halfHeight);
560560 _rigidBody->setCcdMotionThreshold(_radius);
561561 }
562562 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t