After I read google document and try a example, I think you didnt get what I mean.
GameObject targetGo = ((OnlineMapsMarker3D)target).instance.gameObject;
GameObject playerGo = ((OnlineMapsMarker3D)player).instance.gameObject;
Debug.Log(Vector3.Distance(targetGo.transform.position, playerGo.transform.position));
Vector2 markerTile = OnlineMapsUtils.LatLongToTilef(target.position, OnlineMaps.instance.zoom);
Vector2 playerTile = OnlineMapsUtils.LatLongToTilef(player.position, OnlineMaps.instance.zoom);
Debug.Log(Vector2.Distance(markerTile, playerTile));
the output is: 15.20264 and 0.05957031
lets take ingress as an example:
I want to draw a circle around player and its radius is 500m in real world so player can attack enemy in this range.
How should I project this 500m in the 3D game space? In other world what is the radius of that circle in game space?
Post's attachments unnamed.png 97.34 kb, 117 downloads since 2015-11-02