<?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 — Map shake a little with SetPosition]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1161</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1161&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Map shake a little with SetPosition.]]></description>
		<lastBuildDate>Wed, 15 May 2019 22:03:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Map shake a little with SetPosition]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4947#p4947</link>
			<description><![CDATA[<p>It work perfectly. Thank-you!</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Wed, 15 May 2019 22:03:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4947#p4947</guid>
		</item>
		<item>
			<title><![CDATA[Re: Map shake a little with SetPosition]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4944#p4944</link>
			<description><![CDATA[<p>Many thanks, I&#039;ll try as you suggested</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Wed, 15 May 2019 14:37:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4944#p4944</guid>
		</item>
		<item>
			<title><![CDATA[Re: Map shake a little with SetPosition]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4941#p4941</link>
			<description><![CDATA[<p>Hello.</p><p>Here are two problems:<br />1. Vector2 is based on float, and it just doesn&#039;t have enough accuracy on a large zoom.<br />Use doubles or OnlineMapsVector2d instead of Vector2.<br />OnlineMapsVector2d also has a Lerp method.<br />2. Use Lerp for coordinates is not correct, because the coordinates exist on the sphere, and the map is displayed on the plane (has a Mercator projection).<br />For a larger zoom you probably will not see this problem.<br />But for small zoom it will be very noticeable.<br />The correct way is Lerp tile position.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 15 May 2019 12:50:40 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4941#p4941</guid>
		</item>
		<item>
			<title><![CDATA[Map shake a little with SetPosition]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4939#p4939</link>
			<description><![CDATA[<p>Hello, I&#039;m moving the map very slowly from a longitude latitude point to another,<br />with a simple Lerp:</p><p>Vector2 newMapPos = Vector2.Lerp(pos1,pos2, t);<br />double longitude = newMapPos.x;<br />double latitude = newMapPos.y;<br />OnlineMaps.instance.SetPosition(longitude, latitude);</p><p>The map is very zoomed, and I can see that it &quot;shake&quot; a little.<br />Obviously with a lower zoom is much less noticeable.</p><p>Am I doing something wrong or it is normal?<br />Many thanks</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Wed, 15 May 2019 11:04:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4939#p4939</guid>
		</item>
	</channel>
</rss>
