mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 16:44:04 +02:00
recenter rotation while driving.
This should reduce foot sliding in HMD mode.
This commit is contained in:
parent
07fefdcb2f
commit
21c0e45d87
1 changed files with 1 additions and 1 deletions
|
@ -2764,7 +2764,7 @@ void MyAvatar::FollowHelper::prePhysicsUpdate(MyAvatar& myAvatar, const glm::mat
|
|||
const glm::mat4& currentBodyMatrix, bool hasDriveInput) {
|
||||
|
||||
if (myAvatar.getHMDLeanRecenterEnabled()) {
|
||||
if (!isActive(Rotation) && shouldActivateRotation(myAvatar, desiredBodyMatrix, currentBodyMatrix)) {
|
||||
if (!isActive(Rotation) && (shouldActivateRotation(myAvatar, desiredBodyMatrix, currentBodyMatrix) || hasDriveInput)) {
|
||||
activate(Rotation);
|
||||
}
|
||||
if (!isActive(Horizontal) && shouldActivateHorizontal(myAvatar, desiredBodyMatrix, currentBodyMatrix)) {
|
||||
|
|
Loading…
Reference in a new issue