Greetings everyone.
I’m trying to create a function that rotates the player 90 degrees, along with the camera, slowly.
The player and camera are able to rotate, but it is happening instantly.
I have tried with the following code.
int float cameraMoveSpeed= 10;
if (Input.GetKeyDown(KeyCode.Q)) {
transform.Rotate(Vector3.forward*(cameraMoveSpeed*Time.deltaTime), 90f);
UpdateGravity();
}
Thanks for taking your time reading this.