<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Camera rotation based on touch issue]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=502&amp;type=atom" />
	<updated>2017-09-23T15:26:11Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=502</id>
		<entry>
			<title type="html"><![CDATA[Re: Camera rotation based on touch issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2840#p2840" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;m having a same problem when rotating a camera using my own script.<br />Can you guys show an example how to deal with this problem using a quaternions.</p>]]></content>
			<author>
				<name><![CDATA[josip112001]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=460</uri>
			</author>
			<updated>2017-09-23T15:26:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2840#p2840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Camera rotation based on touch issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2195#p2195" />
			<content type="html"><![CDATA[<p>Hi Alex,</p><p>My issue was with the camera control. However, I created my own script in the meantime that fixes the issue. Thanks for the support and quick replies.</p>]]></content>
			<author>
				<name><![CDATA[jamesar]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=431</uri>
			</author>
			<updated>2017-04-12T23:19:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2195#p2195</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Camera rotation based on touch issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2194#p2194" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You have a problem using &quot;Allow Camera Control&quot;, or you are trying to create your own script?<br />If the problem is in &quot;Allow Camera Control&quot;, please explain this in more detail.<br />If the problem is in your own script, then as Draco18s wrote, you need to use quaternions.<br /><a href="https://docs.unity3d.com/ScriptReference/Quaternion.html">https://docs.unity3d.com/ScriptReferenc … rnion.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-12T23:12:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2194#p2194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Camera rotation based on touch issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2188#p2188" />
			<content type="html"><![CDATA[<p>Yes, using quaternions instead of eulers. Euler rotations suffer from Gimbal Lock, the problem you describe is related.</p>]]></content>
			<author>
				<name><![CDATA[Draco18s]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=429</uri>
			</author>
			<updated>2017-04-12T19:44:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2188#p2188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Camera rotation based on touch issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2186#p2186" />
			<content type="html"><![CDATA[<p>Hi guys,</p><p>I&#039;m working through the calculation to update the camera position based on touch input right now. I&#039;m noticing that after rotating in a circle by a certain amount, the direction of the camera rotation will inverse and begin to rotate the opposite way to which you were previously rotating. </p><p>Is there a way to avoid this and simply continue the camera rotation in the same direction instead of it changing direction?</p><p>I&#039;ve noticed this occurs after dragging the pointer in a circular fashion past the 90 and 270 degree points.</p><p>Thanks for the help!</p>]]></content>
			<author>
				<name><![CDATA[jamesar]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=431</uri>
			</author>
			<updated>2017-04-12T19:01:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2186#p2186</id>
		</entry>
</feed>
