i have this very basic script that i use to follow the player around but it shakes alot when it is in use i dont know if it is something to do with unity or the script is there anyway i can improve my code or is there any better codes. the code is:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class camerafollow : MonoBehaviour
{
public Transform target;
public Vector3 offset;
void Update()
{
transform.position = target.position + offset;
}
}