title: Unity 3D on iOS : Working with Compass and Gyroscope
body: <p>I'd like to make an AR app in Unity. Which displays GeoLocated Points Of interests. 
  For now the GPS give me the correct location of the player and the points. 
  And the Gyroscope reads well the device rotations. </p>
  
  <p>My issue is I can't rotate the device like it is in the real world. </p>
  
  <p>When I Start the app, it just point to south. I want it to point towards the real direction i'm heading. </p>
  
  <p>for now, I have a very straightforward gyroscope that scripts that works.</p>
  
  <pre><code>var x = Input.gyro.rotationRate.x;
  var y = Input.gyro.rotationRate.y;
  var z = Input.gyro.rotationRate.z;
  transform.eulerAngles = new Vector3 (x, y, z);
  </code></pre>
  
  <p>What I want to do is to add the part where I start by heading in the true direction of the player.</p>
  
  <p>Thank you guys.</p>