title: Tilted mobile accelerometer android
body: <p>I'm trying to make a little game in which you have to move some object tilting the mobile phone. I achieved this following this tutorial: <a href="http://www.codeproject.com/Articles/228656/Tilt-Ball-Walkthrough" rel="nofollow">http://www.codeproject.com/Articles/228656/Tilt-Ball-Walkthrough</a></p>
  
  <p>The case is this is based on the mobile being in a 0 degrees as origin but I would like to change the origin angle to one more comfortable: an angle aiming my face as origin. </p>
  
  <p>How can I normalize the acceleration variables x, y given by the accelerometer to my natural angle (aiming my face)?</p>