<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Getting the smooth zoom value (in float)?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=292&amp;type=atom" />
	<updated>2016-09-30T06:16:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=292</id>
		<entry>
			<title type="html"><![CDATA[Re: Getting the smooth zoom value (in float)?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1331#p1331" />
			<content type="html"><![CDATA[<p>Thank you for the quick reply!</p>]]></content>
			<author>
				<name><![CDATA[Mridul]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=225</uri>
			</author>
			<updated>2016-09-30T06:16:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1331#p1331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting the smooth zoom value (in float)?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1330#p1330" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You can calculate the float zoom based on transform.localScale:<br /></p><div class="codebox"><pre><code>float floatZoom = OnlineMaps.instance.zoom + Mathf.Log(OnlineMaps.instance.transform.localScale.x, 2);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-09-30T06:01:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1330#p1330</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Getting the smooth zoom value (in float)?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1329#p1329" />
			<content type="html"><![CDATA[<p>Hey,<br />There is an attack ring around the player of about 1 km diameter , it depicts the players you can attack (the player has to be inside it) I am changing the scale of the attack ring based on the zoom level to match the 1km radius. right now it snaps from scale x to scale y when zoom level is changed from say 14 to 15, and as I am using the smooth zoom feature I was wondering if I can maybe get the in between values so I can scale the attack ring more smoothly.</p><p>Thanks,<br />Mridul</p>]]></content>
			<author>
				<name><![CDATA[Mridul]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=225</uri>
			</author>
			<updated>2016-09-30T05:43:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1329#p1329</id>
		</entry>
</feed>
