History

getRotationInModelFrame -> getRotation

Andrew Meadows committed 12 years ago

Commit 4a3fbfc1 parent 4ae58153 files · +11 −11Browse files

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

Unified · Split

interface/src/avatar/SkeletonModel.cpp+3−3
@@ -148,7 +148,7 @@ void SkeletonModel::applyHandPositionInModelFrame(int jointIndex, const glm::vec · 147 unmodified lines
148148 return;
149149 }
150150 JointState& state = _jointStates[jointIndex];
151− glm::quat handRotation = state.getRotationInModelFrame();
151+ glm::quat handRotation = state.getRotation();
152152
153153 // align hand with forearm
154154 float sign = (jointIndex == geometry.rightHandJointIndex) ? 1.0f : -1.0f;
@@ -267,7 +267,7 @@ void SkeletonModel::renderJointConstraints(int jointIndex) { · 112 unmodified lines
267267
268268 glPushMatrix();
269269 glTranslatef(position.x, position.y, position.z);
270− glm::quat parentRotation = (joint.parentIndex == -1) ? _rotation : _rotation * _jointStates.at(joint.parentIndex).getRotationInModelFrame();
270+ glm::quat parentRotation = (joint.parentIndex == -1) ? _rotation : _rotation * _jointStates.at(joint.parentIndex).getRotation();
271271 glm::vec3 rotationAxis = glm::axis(parentRotation);
272272 glRotatef(glm::degrees(glm::angle(parentRotation)), rotationAxis.x, rotationAxis.y, rotationAxis.z);
273273 float fanScale = directionSize * 0.75f;
@@ -300,7 +300,7 @@ void SkeletonModel::renderJointConstraints(int jointIndex) { · 26 unmodified lines
300300 }
301301 glPopMatrix();
302302
303− renderOrientationDirections(position, _rotation * jointState.getRotationInModelFrame(), directionSize);
303+ renderOrientationDirections(position, _rotation * jointState.getRotation(), directionSize);
304304 jointIndex = joint.parentIndex;
305305
306306 } while (jointIndex != -1 && geometry.joints.at(jointIndex).isFree);

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