Another way for testing

Instead of changing the direction of the ball, you can just turn off the bowling pins to see if you’re ball is stopping where it’s supposed to.

It’s a good idea turning off the pins.

Just a heads up regarding why the camera keeps going for a little longer. The camera position is a bit behind the ball, so what we want is the camera to stop when the BALL reaches the first pin. My script looks like this:

void Update () {
    if (ball.GetComponent<Transform>().position.z < 1829f)
    {
        GetComponent<Transform>().position = ball.GetComponent<Transform>().position + offset;
    }
}
1 Like

Well spotted :slight_smile: this does actually get covered in a later video, but it’s good that you noticed!

1 Like

Privacy & Terms