<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Get coordinates from Vector2]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1467&amp;type=atom" />
	<updated>2020-03-06T18:14:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1467</id>
		<entry>
			<title type="html"><![CDATA[Re: Get coordinates from Vector2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6052#p6052" />
			<content type="html"><![CDATA[<p>Hello.</p><p>GetCoords expects screen position, not world or local position.<br />To convert the world position to coordinates use OnlineMapsTileSetControl.GetCoordsByWorldPosition.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#a30f7d0d07e9559cc57210b0ad55b7506">http://infinity-code.com/doxygen/online … 0ad55b7506</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-03-06T18:14:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6052#p6052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Get coordinates from Vector2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6051#p6051" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;m casting a ray from an object and then I&#039;m trying to get the coordinates from the hit point. I&#039;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&#039;m using the Input.mousePosition it works fine, but I can&#039;t use that because I&#039;m developing a VR Application, so I have to use raycast. </p><p>Does anybody know why is this happening?</p>]]></content>
			<author>
				<name><![CDATA[lbaptista95]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1242</uri>
			</author>
			<updated>2020-03-06T18:04:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6051#p6051</id>
		</entry>
</feed>
