Calculate the distance from the camera to the center of the world on each draw if the camera's position changes