So i just started my own game and ive played my player move and The camera go to the player in 3rd person. Now i have a problem where im trying to make it so i can rotate the camera around the player while moving, global camera rotation etc what ever you call it. ive tried everything from youtube, to documentations and even udemy course example and i just cant get it. this is my game.
now this is my Code:
public class CameraFollow : MonoBehaviour
{
[SerializeField] Transform target;
[SerializeField] float smoothspd = 0.125f;
[SerializeField] Vector3 offset;
void FixedUpdate()
{
Vector3 desiredPosition = target.position + offset;
Vector3 smoothing = Vector3.Lerp(transform.position, desiredPosition, smoothspd);
transform.position = smoothing;
transform.LookAt(target);
}
The Crazy Rotation you see is me when i tried using speed with euler Angles and it only sped up the players rotation but i took that off. as for as everything else its the same.