<?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 — [SOLVED] Gyro and Mouse controls interactions]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1542</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1542&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] Gyro and Mouse controls interactions.]]></description>
		<lastBuildDate>Thu, 23 Jul 2020 17:16:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6506#p6506</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (grenouille)]]></author>
			<pubDate>Thu, 23 Jul 2020 17:16:40 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6506#p6506</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6360#p6360</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (grenouille)]]></author>
			<pubDate>Fri, 12 Jun 2020 10:13:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6360#p6360</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6358#p6358</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 12 Jun 2020 09:18:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6358#p6358</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6357#p6357</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (grenouille)]]></author>
			<pubDate>Fri, 12 Jun 2020 07:21:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6357#p6357</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Gyro and Mouse controls interactions]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6356#p6356</link>
			<description><![CDATA[<p>Hello.</p><p>Thanks for the bug report.<br />Modified scripts attached.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 11 Jun 2020 23:08:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6356#p6356</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Gyro and Mouse controls interactions]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6351#p6351</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (grenouille)]]></author>
			<pubDate>Thu, 11 Jun 2020 13:59:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6351#p6351</guid>
		</item>
	</channel>
</rss>
