Balls making sound when created

My balls made a sound when getting created. Pretty sure this is because they are colliding with the camera where they are created. I fixed this with the following code.
ball.transform.position = transform.position + Camera.main.transform.forward * 1;
This made the ball instantiate right in front of the camera, instead of on top of it.

Privacy & Terms