<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — DragAndZoomInertia.cs vs InertiaExample.cs]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1627&amp;type=atom" />
	<updated>2020-10-28T11:21:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1627</id>
		<entry>
			<title type="html"><![CDATA[Re: DragAndZoomInertia.cs vs InertiaExample.cs]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6784#p6784" />
			<content type="html"><![CDATA[<p>Well, I would call them &quot;micro stutters&quot; or something like that. It&#039;s a very subtle thing that just starts to happen when the camera is not perfectly synced with the scene. If I&#039;m not mistaken the example-script updates the tile/map-position in FixedUpdate which happens only a fixed amount of times per second and not at full framerate. I&#039;ll paste a modified version of the script which does the tile-position-update in the Update method. It&#039;s subtle but for me the difference is notable. Feel free to correct me on that, this has a lot to do with subtle perception. The script allows to toggle between the original mode and the Update base mode.</p><p>Regards,</p><p>Jürgen</p>]]></content>
			<author>
				<name><![CDATA[negruj0w1tsch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1428</uri>
			</author>
			<updated>2020-10-28T11:21:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6784#p6784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DragAndZoomInertia.cs vs InertiaExample.cs]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6779#p6779" />
			<content type="html"><![CDATA[<p>I just tested this and it works smoothly on my side.<br />Please explain in detail what you mean by &quot;jaggy&quot;.<br />Maybe I&#039;m just looking the other way.<br />A short video here will help a lot in explaining the problem.</p><p>This script was written many years ago and unfortunately I don&#039;t remember why I used FixedUpdate.<br />In theory, this should work the same in Update and FixedUpdate.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-10-27T17:34:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6779#p6779</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DragAndZoomInertia.cs vs InertiaExample.cs]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6777#p6777" />
			<content type="html"><![CDATA[<p>Alright, thanks. I&#039;m using the Drag and zoom intertia script now. It feels a little jaggy, or not as smooth as it could be imo. I assume this is because the position and zoom are updated inside the FixedUpdate method instead of Update. Any particular reason for that?</p><p>Cheers,</p><p>Jürgen</p>]]></content>
			<author>
				<name><![CDATA[negruj0w1tsch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1428</uri>
			</author>
			<updated>2020-10-27T08:48:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6777#p6777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DragAndZoomInertia.cs vs InertiaExample.cs]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6772#p6772" />
			<content type="html"><![CDATA[<p>Hello.</p><p>DragAndZoomInertia is an improved version of InertiaExample that adds zoom inertia.<br />Which example to use depends only on whether the zoom should have inertia or not.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-10-26T11:38:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6772#p6772</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[DragAndZoomInertia.cs vs InertiaExample.cs]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6771#p6771" />
			<content type="html"><![CDATA[<p>Hello,</p><p>This may be a weird question, but I&#039;m wondering which of the 2 Inertia examples you would recommend using. Apart from the zoom, is one of the 2 scripts better than the other in any way (e.g. cleaner code, more concise code, easier to tweak etc...)?</p><p>Regards,</p><p>Jürgen</p>]]></content>
			<author>
				<name><![CDATA[negruj0w1tsch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1428</uri>
			</author>
			<updated>2020-10-26T11:17:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6771#p6771</id>
		</entry>
</feed>
