- Home /
Question by
Unitycode130 · Nov 22, 2016 at 09:05 AM ·
c#quaternionslerpeulermouse input
Quaternion Smooth Rotation
I have this code that rotates my camera and it works as intended, but I would like to make the movement smooth. How can I achieve this? I'm guessing it has something to do with Slerp?
public float mouseSensitivity = 5.0f;
verticalRotation -= Input.GetAxis("Mouse Y") * mouseSensitivity;
Camera.main.transform.localRotation = Quaternion.Euler(verticalRotation, 0, 0);
Comment
Your answer
Follow this Question
Related Questions
move object and slow down near end 1 Answer
Multiple Cars not working 1 Answer
Lerp Rotation C# 3 Answers
Quaternion Rotation Smooth 1 Answer