<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Get coordinates from Vector2]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1467</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1467&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Get coordinates from Vector2.]]></description>
		<lastBuildDate>Fri, 06 Mar 2020 18:14:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Get coordinates from Vector2]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6052#p6052</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 06 Mar 2020 18:14:53 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6052#p6052</guid>
		</item>
		<item>
			<title><![CDATA[Get coordinates from Vector2]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6051#p6051</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (lbaptista95)]]></author>
			<pubDate>Fri, 06 Mar 2020 18:04:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6051#p6051</guid>
		</item>
	</channel>
</rss>
