Topic: How to get distance from camera to long/lat

Helllo,
is it possible to get the distance from the camera to some point (with elevation)?
Many thanks!

Re: How to get distance from camera to long/lat

Hello.

float distance = (yourCamera.transform.position - somePointWithElevation).magnitude;
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.