mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 23:12:16 +02:00
Correct the name of a scale factor (had inverted meaning).
This commit is contained in:
parent
cba79c72f5
commit
8ca6421376
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue