History

Changed RagDoll to Ragdoll

Andrew Meadows committed 12 years ago

Commit 5bd37ac1 parent 417a7de8 files · +35 −35Browse files

Showing the changes to interface/src/avatar/SkeletonModel.cpp (1 of 8 files). Show all

Unified · Split

interface/src/avatar/SkeletonModel.cpp+5−5
@@ -101,10 +101,10 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) { · 100 unmodified lines
101101 applyPalmData(geometry.rightHandJointIndex, hand->getPalms()[rightPalmIndex]);
102102 }
103103
104− simulateRagDoll(deltaTime);
104+ simulateRagdoll(deltaTime);
105105 }
106106
107−void SkeletonModel::simulateRagDoll(float deltaTime) {
107+void SkeletonModel::simulateRagdoll(float deltaTime) {
108108 // move ragdoll points toward joints
109109 QVector<glm::vec3>& points = _ragDoll.getPoints();
110110 const int numStates = _jointStates.size();
@@ -171,7 +171,7 @@ void SkeletonModel::renderIKConstraints() { · 60 unmodified lines
171171 renderJointConstraints(getRightHandJointIndex());
172172 renderJointConstraints(getLeftHandJointIndex());
173173 //if (isActive() && _owningAvatar->isMyAvatar()) {
174− // renderRagDoll();
174+ // renderRagdoll();
175175 //}
176176 }
177177
@@ -272,7 +272,7 @@ void SkeletonModel::updateJointState(int index) { · 94 unmodified lines
272272
273273 void SkeletonModel::updateShapePositions() {
274274 if (isActive() && _owningAvatar->isMyAvatar() &&
275− Menu::getInstance()->isOptionChecked(MenuOption::CollideAsRagDoll)) {
275+ Menu::getInstance()->isOptionChecked(MenuOption::CollideAsRagdoll)) {
276276 _ragDoll.updateShapes(_rotation, _translation);
277277 } else {
278278 Model::updateShapePositions();
@@ -498,7 +498,7 @@ bool SkeletonModel::getEyePositions(glm::vec3& firstEyePosition, glm::vec3& seco · 219 unmodified lines
498498 return false;
499499 }
500500
501−void SkeletonModel::renderRagDoll() {
501+void SkeletonModel::renderRagdoll() {
502502 const int BALL_SUBDIVISIONS = 6;
503503 glDisable(GL_DEPTH_TEST);
504504 glDisable(GL_LIGHTING);

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