Topic: Distance between marker MainCamera and marker

Hi,
i would like to get the distance between the MainCamera and a marker, but the Problem is if i use the function Vector3.Distance the distance is not correct. The problem is that the marker is not always at the same position, so it is possible that i zoom in but the distance get's bigger because the marker moves to an other position. Is there a way to get the real distance?

Re: Distance between marker MainCamera and marker

Hello.

OnlineMapsUtils.DistanceBetweenPoints
https://infinity-code.com/doxygen/onlin … bc84a165f2

Example:
https://infinity-code.com/atlas/online- … ample.html

Kind Regards,
Infinity Code Team.

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

Re: Distance between marker MainCamera and marker

Hi,

but this works only in 2d and not in 3d or am I misunderstanding something?

Re: Distance between marker MainCamera and marker

This calculates the distance between coordinates and works always - in 2d, 3d and without a map at all.

Kind Regards,
Infinity Code Team.

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