diff --git a/src/Camera.cpp b/src/Camera.cpp index 0b95c94..7c0aa16 100644 --- a/src/Camera.cpp +++ b/src/Camera.cpp @@ -39,7 +39,7 @@ void Camera::rotate(const Vec3d& rotation) gaze = z_rotation * gaze; gaze_up = z_rotation * gaze_up; - Quaternion y_rotation{0,sin(rotation.y),0,cos(rotation.y)}; + Quaternion y_rotation{0,sin(rotation.y/2),0,cos(rotation.y/2)}; y_rotation.normalize(); gaze = y_rotation * gaze; gaze_up = y_rotation * gaze_up;