<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Problems with conversion accuracy]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1931&amp;type=atom" />
	<updated>2022-03-09T09:12:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1931</id>
		<entry>
			<title type="html"><![CDATA[Re: Problems with conversion accuracy]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8163#p8163" />
			<content type="html"><![CDATA[<p>Hello.</p><p>GetCoords converts screen position to coordinates, and that won&#039;t work for your purpose.</p><p>You need to use OnlineMapsTileSetControl.GetCoordsByWorldPosition:<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#a30f7d0d07e9559cc57210b0ad55b7506">https://infinity-code.com/doxygen/onlin … 0ad55b7506</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-03-09T09:12:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8163#p8163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problems with conversion accuracy]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8161#p8161" />
			<content type="html"><![CDATA[<p>Hi, I&#039;m having trouble converting from World Position to Unity to lat - lon position. I am using the function <br />posLatLon = OnlineMapsControlBase.instance.GetCoords(posxz); <br />where posxz is a Vector2 that tells me the position of the object in the xz plane.<br />The imprecision is in the order of a hundred meters.</p><p>I noticed that using this function the accuracy is very high instead.<br />Vector2 posCursor = OnlineMapsControlBase.instance.GetCoords();</p><p>I know about the &quot;Get Position By World Coordinates&quot; action but I don&#039;t have it.</p><p>Thanks,<br />Ilaria</p>]]></content>
			<author>
				<name><![CDATA[ilaria]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1923</uri>
			</author>
			<updated>2022-03-08T15:57:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8161#p8161</id>
		</entry>
</feed>
