During the challenge, I set up my code a little differently then the solution in a way that makes it easier to adjust the camera’s end position. with a public “strikeview”, it’s easier to adjust and test what you’d like the end view to be.
public Ball ball;
public float strikeview = 1000;
private Vector3 offset;
void Start () {
offset = transform.position - ball.transform.position;
}
void Update() {
if (transform.position.z < strikeview) { transform.position = ball.transform.position + offset; }
}