Correct the name of a scale factor (had inverted meaning).

This commit is contained in:
Phil Palmer 2020-12-30 01:56:05 -05:00
parent cba79c72f5
commit 8ca6421376

View file

@ -4863,8 +4863,8 @@ glm::mat4 MyAvatar::deriveBodyFromHMDSensor(const bool forceFollowYPos) const {
if (!forceFollowYPos && !getHMDCrouchRecenterEnabled()) {
// Set the body's vertical position as if it were standing in its T-pose.
float userToRigScale = getUserEyeHeight() / getUnscaledEyeHeight();
bodyPos.y = userToRigScale * rig.getUnscaledHipsHeight();
float rigToUserScale = getUserEyeHeight() / getUnscaledEyeHeight();
bodyPos.y = rigToUserScale * rig.getUnscaledHipsHeight();
}
glm::mat4 bodyMat = createMatFromQuatAndPos(bodyQuat, bodyPos);