Hello,
I am new to Unity and I am trying to research how to smoothly rotate the camera by 90 degree around a target on the Y axis - in my case, a cube - using the left and right key to move it -90 and 90 degrees respectively. The result I am after is that by clicking left and right, you see different sides of the cube.
I would like to see the code needed to achieve this? I came across Quaternion.Lerp/Slerp and Mathf.MoveTowardsAngle but not sure how to use them for my situation.