Roll-a-Ball Tutorial Camera still doing loop de loop as it follows the sphere.

Hi everyone. I followed the exact steps for the Roll-a-Ball tutorial and I was able to affix my camera to the sphere but it is still doing a rotation (a vertical rotation around the z-axis) as I’m moving the sphere. I am using a prefab of a beach ball I downloaded from the assets store, could some setting in there be affecting it?

Hi @GSGregory! No, I didn’t make it a child object. The camera is its own game object with a camera controller script attached. The following script is directly from Unity’s tutorial on YouTube.


public class CameraController : MonoBehaviour
{
public GameObject player;

private Vector3 offset;
void Start()
{
    offset = transform.position - player.transform.position;
}

// Update is called once per frame
void Update()
{
    
}
void LateUpdate()
{
   transform.position = player.transform.position + offset;
    
}