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!
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → 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!
Hello.
float distance = (yourCamera.transform.position - somePointWithElevation).magnitude;
Infinity Code Forum → Online Maps Help → How to get distance from camera to long/lat
Powered by PunBB, supported by Informer Technologies, Inc.