title: Rotate object in Unity 3D
body: <p>I can use the following code to rotate object using accelerometer.</p>
  
  <pre><code>transform.rotation = Quaternion.LookRotation(Input.acceleration.normalized, Vector3.up);
  </code></pre>
  
  <p>But i would like to rotate object like for example screen is rotating - 0, 90, 180 and 360 degrees. How can I do it using Unity 3D?</p>