<?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 redraw on new floatZoom value;]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1158</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1158&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Map redraw on new floatZoom value;.]]></description>
		<lastBuildDate>Sun, 12 May 2019 16:28:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Map redraw on new floatZoom value;]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4928#p4928</link>
			<description><![CDATA[<p>Right! Thank-you!</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Sun, 12 May 2019 16:28:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4928#p4928</guid>
		</item>
		<item>
			<title><![CDATA[Re: Map redraw on new floatZoom value;]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4927#p4927</link>
			<description><![CDATA[<p>Hello.</p><p>When using Lerp, the result will tend to the target value, but will never be equal to it.<br />Add some threshold:<br /></p><div class="codebox"><pre><code>float newZoom = Mathf.Lerp (initZoom, 16, t);
if (16 - newZoom &lt; 0.01f) newZoom = 16;
map.floatZoom = newZoom;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 12 May 2019 10:14:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4927#p4927</guid>
		</item>
		<item>
			<title><![CDATA[Map redraw on new floatZoom value;]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4924#p4924</link>
			<description><![CDATA[<p>Hello, I&#039;d like to zoom the map a little when some gameobject is clicked.<br />To do so I&#039;m using this simple Lerp</p><p>OnlineMaps.instance.floatZoom = Mathf.Lerp(initZoom, 16, t);</p><p>The problem is that the map is zoomed, but is not updated to the new zoom level (16).</p><p>How can I update by script the map to zoom level 16?</p><p>Many thanks</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Sun, 12 May 2019 01:11:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4924#p4924</guid>
		</item>
	</channel>
</rss>
