Skip to content
Snippets Groups Projects
Commit a7894185 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix Pitch

parent 41421262
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment