<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — [SOLVED] Gyro and Mouse controls interactions]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1542&amp;type=atom" />
	<updated>2020-07-23T17:16:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1542</id>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6506#p6506" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I modified the code of <em>GyroControl.cs</em> (that you provided) to be able to smoothly reset the rotation delta applied with the MouseControl.</p><p>The function is as follows:<br /></p><div class="codebox"><pre><code>public void ResetRotationDelta(float duration)
{
    if (!DOTween.IsTweening(rotationDelta))
    {
        DOTween.To(() =&gt; rotationDelta, x =&gt; rotationDelta = x, Vector2.zero, duration);
    }
}</code></pre></div><p>I&#039;m using the <em>DOTween</em> library but it&#039;s probably doable without it.</p><p>I think it would be a very nice addition to the GyroControl.</p>]]></content>
			<author>
				<name><![CDATA[grenouille]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1264</uri>
			</author>
			<updated>2020-07-23T17:16:40Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6506#p6506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6360#p6360" />
			<content type="html"><![CDATA[<p>I replaced the line with </p><div class="codebox"><pre><code>inputPosition = Input.mousePosition;</code></pre></div><p> and it works perfectly.</p><p>Thank you very much !</p>]]></content>
			<author>
				<name><![CDATA[grenouille]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1264</uri>
			</author>
			<updated>2020-06-12T10:13:04Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6360#p6360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6358#p6358" />
			<content type="html"><![CDATA[<p>Oops ...<br />I made modifications in the dev version of the asset, and the modified files contain APIs that are not yet present in the published version.</p><p>You have two ways:<br />1. Replace the line that causes the error from<br /></p><div class="codebox"><pre><code>inputPosition = pano.GetInputPosition();</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>inputPosition = Input.mousePosition;</code></pre></div><p>2. Email me (support@infinity-code.com) with your invoice number and I will send you the latest dev version of the asset.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-12T09:18:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6358#p6358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6357#p6357" />
			<content type="html"><![CDATA[<p>Thank you !</p><p>When I import the package I get the following error :<br /></p><div class="codebox"><pre><code>MouseControl.cs(212,34): error CS1061: &#039;Pano&#039; does not contain a definition for &#039;GetInputPosition&#039; and no accessible extension method &#039;GetInputPosition&#039; accepting a first argument of type &#039;Pano&#039; could be found (are you missing a using directive or an assembly reference?)</code></pre></div><p>I use the last version of uPano (2.1.1.1).<br />The packaged modified 3 files : <em>GyroControl.cs</em>, <em>MouseControl.cs</em> and <em>PanoControl.cs</em>.</p>]]></content>
			<author>
				<name><![CDATA[grenouille]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1264</uri>
			</author>
			<updated>2020-06-12T07:21:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6357#p6357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6356#p6356" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thanks for the bug report.<br />Modified scripts attached.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-11T23:08:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6356#p6356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[SOLVED] Gyro and Mouse controls interactions]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6351#p6351" />
			<content type="html"><![CDATA[<p>Hello,</p><p>In my application using uPano, the GyroControl and MouseControl components seem to not interact very well.<br />If I try to pan the panorama using my finger while the GyroControl is active, it will snap back to the previous &quot;gyro position&quot;.<br />I&#039;d like to pan the view using my finger and keep the angle I&#039;ve set (after releasing the touch) while still using GyroControl.</p><p>Is there an easy way to implement this behaviour using uPano controls ?</p><p>Thank you.</p>]]></content>
			<author>
				<name><![CDATA[grenouille]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1264</uri>
			</author>
			<updated>2020-06-11T13:59:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6351#p6351</id>
		</entry>
</feed>
