diff --git a/Source/Networking/VRNetPlayer.cs b/Source/Networking/VRNetPlayer.cs index f7b76b8d..f1cbf80c 100644 --- a/Source/Networking/VRNetPlayer.cs +++ b/Source/Networking/VRNetPlayer.cs @@ -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; } @@ -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 diff --git a/Source/Player/VRPlayer.cs b/Source/Player/VRPlayer.cs index cb182605..7ad4a60f 100644 --- a/Source/Player/VRPlayer.cs +++ b/Source/Player/VRPlayer.cs @@ -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