title: How to ignore rotation while moving? (In Unity using C#)
body: <p>I'm very noob at programming but I wanted to try something using some tutorials.</p>
  
  <p>I basically have an object and using Android's accelerometer it rotates, then by using two buttons, it either goes left or right. For this I use </p>
  
  <blockquote>
    <p>transform.Rotate (0, 0, -temp * Time.deltaTime);</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>transform.Translate (speed * Time.deltaTime, 0, 0);</p>
  </blockquote>
  
  <p>The program works properly and once the object has rotated, it moves in the "new x axis", but I want it to move in the "world's x axis", one that's "permanent".</p>
  
  <p>As I'm very bad at programming and English as well I made a simple drawing so it's easier to understand what do I want to do:</p>
  
  <p><a href="http://i.stack.imgur.com/LpM1J.png" rel="nofollow">http://i.stack.imgur.com/LpM1J.png</a></p>
  
  <p>Being the upper case what happens (and should happen as it has been programmed) and the other what I want to achieve. Any suggestions on how to do this and "ignore" the rotation of the object?</p>
  
  <p>Thanks for your time :D</p>