Question by
50VAJJ · Feb 03, 2018 at 09:18 AM ·
cameracharactercharactercontrollercontroller
How to smooth the movement of the camera?
There is such a code for the camera - cam.transform.Rotate (-cameraRotation);
Thus, I try to smooth the movement of the camera -
var orgRotation = this.transform.rotation.eulerAngles;
cameraRotation = Vector3.Lerp (orgRotation, cameraRotation, 0.5F);
cam.transform.Rotate (-cameraRotation);
cameraRotation is the x-axis (mouse).
But Lerp does not work, so I did not fix the time, why?
Comment
Your answer
Follow this Question
Related Questions
Player pushes object but gets pushed into the Wall/Boundary 0 Answers
Move Direction Based on camera position not working correctly (3D) 0 Answers
BoatRiderController? 1 Answer
having CharacterController movement in fixedupdate causes jerky movement on camera 3 Answers
Boat Controller Help 0 Answers