I am on Unity’s tutorial 3 on making a roll-a-ball game but my camera zooms in way too much when I press play. In the video, the camera stays in its original position but it seems that my camera moves to the position of the ball even though I used the exact same code in the video. Here is the code:
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public GameObject player;
private Vector3 offset;
void start() {
offset = transform.position;
}
void LateUpdate() {
transform.position = player.transform.position + offset;
}
}