Hello,
I have a camera on my scene, and it rotates left if the user presses Q, and rotates right with E. How do I make the camera rotate slowly? Right now it just snaps 90 degrees, is there a way to make it rotate to 90 degrees but slowly (so you can see the camera rotate -- in other words, animate)
function Update () {
if(Input.GetKeyDown("q")){
transform.Rotate(Vector3.up * -90);
}
if(Input.GetKeyDown("e")){
transform.Rotate(Vector3.up * 90);
}
}