<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Using Compass sensor in android phone]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=139&amp;type=atom" />
	<updated>2016-04-17T18:23:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=139</id>
		<entry>
			<title type="html"><![CDATA[Re: Using Compass sensor in android phone]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=604#p604" />
			<content type="html"><![CDATA[<p>Hello, i used your alternative way with «Online Maps Inspector / Help / Check Updates» to download the last beta 2.4.0.30.<br />The new compass threshold option solved my problem... The map rotation is now very stable. <br />Thank you for quick help.</p>]]></content>
			<author>
				<name><![CDATA[vertexview]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=38</uri>
			</author>
			<updated>2016-04-17T18:23:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=604#p604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using Compass sensor in android phone]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=603#p603" />
			<content type="html"><![CDATA[<p>Sometimes Unity Editor does not display these menu items.<br />Unfortunately, I do not know why.<br />You can use alternative way «Online Maps Inspector / Help / Check Updates».</p><p>P.S. In Online Maps v2.4.0.11+, Check Updates, Playmaker Integration Kit and About now located in GameObject / Infinity Code / Online Maps.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-04-17T11:44:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=603#p603</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using Compass sensor in android phone]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=602#p602" />
			<content type="html"><![CDATA[<p>Thank you for this quick answer.<br />I didn&#039;t found the menu entry &quot;Chek updates&quot; under &quot;Component / Infinity Code / Online Maps&quot;<br />The documention on this part seems easy<br />&quot;Online Maps has built-in update system, using which you can update Online Maps to the latest version and get early access to all versions and updates. Click «Component / Infinity Code / Online Maps / Check Updates», to open the window checking for updates&quot;.<br />... But i can&#039;t see this update possibility.<br />My Unity version is 5.3.4f1 and Online Maps is 2.3.0.18</p>]]></content>
			<author>
				<name><![CDATA[vertexview]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=38</uri>
			</author>
			<updated>2016-04-17T10:00:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=602#p602</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using Compass sensor in android phone]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=601#p601" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Please update Online Maps through built-in update to the latest beta version.<br />Online Maps v2.4.0.23+ has a compass threshold.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-04-16T19:55:33Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=601#p601</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Using Compass sensor in android phone]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=600#p600" />
			<content type="html"><![CDATA[<p>Hi,<br />I tried to integrate in my Unity application a Tile map oriented from data given by Compass sensor on Android phone <br />I found a simple script code in Atlas of examples &quot;Rotate the camera on a compass&quot; (<a href="http://infinity-code.com/atlas/online-maps/">http://infinity-code.com/atlas/online-maps/</a>)</p><p>using UnityEngine;<br />public class CameraWithCompass : MonoBehaviour {<br />&nbsp; &nbsp; private void Start()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; OnlineMapsLocationService.instance.OnCompassChanged += OnCompassChanged;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; private void OnCompassChanged(float f)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; OnlineMapsTileSetControl.instance.cameraRotation.y = f * 360;<br />&nbsp; &nbsp; }<br />}</p><p>Attached to the map object this script works quite fine, but the map rotation on phone is too much jerky...<br />I would like to know if there is a simple way to modify the script code above using average information from compass,... or reduce this sensor sensibility.</p>]]></content>
			<author>
				<name><![CDATA[vertexview]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=38</uri>
			</author>
			<updated>2016-04-16T17:08:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=600#p600</id>
		</entry>
</feed>
