Topic: Get coordinates from Vector2
Hi,
I'm casting a ray from an object and then I'm trying to get the coordinates from the hit point. I'm transforming the hit point from global to local space (using the map gameobject transform) to get its relative position and then I use this position on OnlineMaps.control.GetCoords() to get the coordinates, but it always returns me lng = 0 and lat = 0. When I'm using the Input.mousePosition it works fine, but I can't use that because I'm developing a VR Application, so I have to use raycast.
Does anybody know why is this happening?