Skip to content

Commit

Permalink
Temporarily revert rotation offset sync changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Sep 28, 2024
1 parent cb90cf9 commit ef2f83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Networking/VRNetPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ private void OnRigDataReceived(ushort _, BinaryReader reader)
specialAnimationPositionOffset = rig.specialAnimationPositionOffset;

crouchState = rig.crouchState;
rotationOffset = rig.rotationOffset;
rotationOffset = new Vector3(0, rig.rotationOffset, 0);
cameraFloorOffset = rig.cameraFloorOffset;
}

Expand Down Expand Up @@ -617,7 +617,7 @@ public struct Rig
public Vector3 specialAnimationPositionOffset;

public CrouchState crouchState;
public Vector3 rotationOffset;
public float rotationOffset;
public float cameraFloorOffset;

public enum CrouchState : byte
Expand Down
2 changes: 1 addition & 1 deletion Source/Player/VRPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ PlayerController.currentTriggerInAnimationWith is not null &&
(true, false) => CrouchState.Button,
(false, _) => CrouchState.None
},
rotationOffset = rotationOffset.eulerAngles,
rotationOffset = rotationOffset.eulerAngles.y,
cameraFloorOffset = cameraFloorOffset,
}));
else
Expand Down

0 comments on commit ef2f83e

Please sign in to comment.