Revert foot calc scaling change

This commit is contained in:
David Rowe 2018-10-03 09:28:19 +13:00
parent f7fd76b316
commit c0231057f8

View file

@ -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;
}
}