Change the ball radius property to double (otherwise get zero value radius due to integer division)