adding the recentering back into the non hmd lean code

This commit is contained in:
amantley 2018-07-03 11:46:59 -07:00
parent f216316b55
commit 9e5763ea5c
2 changed files with 2 additions and 3 deletions

View file

@ -3533,7 +3533,7 @@ void MyAvatar::FollowHelper::prePhysicsUpdate(MyAvatar& myAvatar, const glm::mat
activate(Vertical);
}
} else {
if (!isActive(Rotation) && getForceActivateRotation()) {
if (!isActive(Rotation) && (getForceActivateRotation() || shouldActivateRotation(myAvatar, desiredBodyMatrix, currentBodyMatrix))) {
activate(Rotation);
setForceActivateRotation(false);
}
@ -3541,7 +3541,7 @@ void MyAvatar::FollowHelper::prePhysicsUpdate(MyAvatar& myAvatar, const glm::mat
activate(Horizontal);
setForceActivateHorizontal(false);
}
if (!isActive(Vertical) && getForceActivateVertical()) {
if (!isActive(Vertical) && (getForceActivateVertical() || shouldActivateVertical(myAvatar, desiredBodyMatrix, currentBodyMatrix))) {
activate(Vertical);
setForceActivateVertical(false);
}

View file

@ -1646,7 +1646,6 @@ private:
bool _shouldLoadScripts { false };
bool _haveReceivedHeightLimitsFromDomain { false };
};
QScriptValue audioListenModeToScriptValue(QScriptEngine* engine, const AudioListenerMode& audioListenerMode);