- Home /
Question by
StarHunter32 · Nov 11, 2014 at 07:35 PM ·
camerarotationsmooth
Smooth camera rotation velocity.
Hi, I'd like to smooth out the rotation of my camera.
Here's what I got in JS:
if (localVilocity.z<-6){
rotationVector.y = car.eulerAngles.y + 180;
}
I need the rotation to be slower, not immediate. How could I do that? I tried the following:
if (localVilocity.z<-6){
rotationVector.y = (car.eulerAngles.y + 180)*Time.deltatime;
}
but nothing happens. The camera stops to move at all.
Thank you.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613171254im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
smoothly rotate camera around an object with momentum 0 Answers
Move and rotate the camera at the same time 2 Answers
Smooth Rotation 2 Answers
Turning the camera down smoothly while running 2 Answers
Rotate around object smoothly 1 Answer