From a7894185a18fea302d5d742ea88d2cbf2c4c3867 Mon Sep 17 00:00:00 2001 From: David Huss <dh@atoav.com> Date: Sun, 21 Jun 2020 13:17:29 +0200 Subject: [PATCH] Fix Pitch --- SmoothMouseLook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmoothMouseLook.cs b/SmoothMouseLook.cs index c885504..e8cb341 100644 --- a/SmoothMouseLook.cs +++ b/SmoothMouseLook.cs @@ -125,7 +125,7 @@ public class SmoothMouseLook : MonoBehaviour // right direction for the head). // Note: 90 deg need to be added, to get the initial orientation right var bodyRotation = Quaternion.AngleAxis(yaw + 90, Vector3.up); - var headRotation = Quaternion.AngleAxis(pitch + 90, Vector3.right); + var headRotation = Quaternion.AngleAxis(pitch, Vector3.right); // Finally combine the rotations for body and head with the start rotations transform.localRotation = bodyRotation * bodyStartOrientation; -- GitLab