History

put IK targets in skeleton's model-frame

Andrew Meadows committed 11 years ago

Commit 224fc551 parent 2c276bb8 files · +28 −45Browse files

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

Unified · Split

interface/src/avatar/SkeletonModel.cpp+1−1
@@ -135,7 +135,7 @@ void SkeletonModel::updateRig(float deltaTime, glm::mat4 parentTransform) { · 134 unmodified lines
135135 headParams.isInHMD = true;
136136
137137 // get HMD position from sensor space into world space, and back into model space
138− AnimPose avatarToWorld(glm::vec3(1), myAvatar->getOrientation(), myAvatar->getPosition());
138+ AnimPose avatarToWorld(glm::vec3(1.0f), myAvatar->getOrientation(), myAvatar->getPosition());
139139 glm::mat4 worldToAvatar = glm::inverse((glm::mat4)avatarToWorld);
140140 glm::mat4 worldHMDMat = myAvatar->getSensorToWorldMatrix() * myAvatar->getHMDSensorMatrix();
141141 glm::mat4 hmdMat = worldToAvatar * worldHMDMat;

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