if (Input.GetKeyDown(KeyCode.Q))
{
view.RotateAround(playerTrans.position, Vector3.up, 90);
}
Hi guys, I just want to rotate my camera view around the player by pressing Key Q once. The code did work but it will immediately rotate the view(i.e. not smooth) What should I add if I want a smooth rotate by pressing key Q once?
Actually, in my case I want my key pressed once and the camera will rotate smoothly to target position which is 90 degrees around the player. So it will not be holding the key. Just one press