Skip to content
Permalink
Browse files

[Editor] Fix orbit editor camera stutter

  • Loading branch information
Eideren authored and xen2 committed Jun 5, 2019
1 parent 2079a31 commit 268a7ed70e93c8433480d68b60e0b638ee913d85
@@ -269,6 +269,8 @@ protected void UpdateCameraBase(ref float yaw, ref float pitch, ref Vector3 posi
yaw -= 1.333f * Game.Input.MouseDelta.X * rotationSpeed; // we want to rotate faster Horizontally and Vertically
if (input.isRotating || input.isOrbiting)
pitch = MathUtil.Clamp(pitch - Game.Input.MouseDelta.Y * rotationSpeed, -MathUtil.PiOverTwo, MathUtil.PiOverTwo);
// Yaw & Pitch modified, update quaternion rotation
rotation = Quaternion.RotationYawPitchRoll(yaw, pitch, 0);
}

// Forward/backward

0 comments on commit 268a7ed

Please sign in to comment.
You can’t perform that action at this time.