<?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 — v2.4.0.53  iOS Compass problem.]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=202</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=202&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in v2.4.0.53  iOS Compass problem..]]></description>
		<lastBuildDate>Mon, 25 Jul 2016 08:02:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: v2.4.0.53  iOS Compass problem.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=913#p913</link>
			<description><![CDATA[<p>Hello.</p><p>Online Maps Location Service is a wrapper for Unity Location Service and Unity Compass.<br />Try to test the compass directly:<br /><a href="http://docs.unity3d.com/ScriptReference/Compass-trueHeading.html">http://docs.unity3d.com/ScriptReference … ading.html</a></p><p>I just tested all example scenes, it works.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 25 Jul 2016 08:02:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=913#p913</guid>
		</item>
		<item>
			<title><![CDATA[v2.4.0.53  iOS Compass problem.]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=910#p910</link>
			<description><![CDATA[<p>Hello.</p><p>Unity 4.7.1, iOS9, Xcode 7.3.1.</p><p>&nbsp; &nbsp; private void UpdateCompassFromInput(ref bool compassChanged)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; float heading = Input.compass.trueHeading;<br />&nbsp; &nbsp; &nbsp; &nbsp; float offset = trueHeading - heading;<br />&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;heading : &quot;+heading);&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if (offset &gt; 360) offset -= 360;<br />&nbsp; &nbsp; &nbsp; &nbsp; else if (offset &lt; -360) offset += 360;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if (Mathf.Abs(offset) &gt; compassThreshold)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; compassChanged = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trueHeading = heading;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (OnCompassChanged != null) OnCompassChanged(trueHeading / 360);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>Input.compass.trueHeading is always 359.</p><p>So the compass does not work.</p><p>I agreed location services. When first installed.</p><p>In previous versions, I do not remember that run.</p><p>T.T Answer Please.</p><p>ADD ) Examples Scenes, It does not work</p>]]></description>
			<author><![CDATA[null@example.com (mininox)]]></author>
			<pubDate>Mon, 25 Jul 2016 07:08:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=910#p910</guid>
		</item>
	</channel>
</rss>
