Commit a7894185 authored by David Huss's avatar David Huss 💬

Fix Pitch

parent 41421262
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment