mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
Revert foot calc scaling change
This commit is contained in:
parent
f7fd76b316
commit
c0231057f8
1 changed files with 2 additions and 2 deletions
|
@ -864,12 +864,12 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
var footPos = MyAvatar.getAbsoluteDefaultJointTranslationInObjectFrame(footJointIndex);
|
||||
if (footPos.x === 0 && footPos.y === 0 && footPos.z === 0.0) {
|
||||
// if footPos is exactly zero, it's probably wrong because avatar is currently loading, fall back to default.
|
||||
return DEFAULT_ROOT_TO_FOOT_OFFSET * MyAvatar.sensorToWorldScale;
|
||||
return DEFAULT_ROOT_TO_FOOT_OFFSET * MyAvatar.scale;
|
||||
} else {
|
||||
return -footPos.y;
|
||||
}
|
||||
} else {
|
||||
return DEFAULT_ROOT_TO_FOOT_OFFSET * MyAvatar.sensorToWorldScale;
|
||||
return DEFAULT_ROOT_TO_FOOT_OFFSET * MyAvatar.scale;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue