Fix return type of getCamDistance.