title: Unity - Swipe input to rotation
body: <p>I am currently trying to implement a wheel shaped menu for an android game.
  The menu should rotate when the user moves his finger up or down the y axis of his screen.</p>
  
  <p>Swipe up --> rotate counter clockwise</p>
  
  <p>Swipe down --> rotate clockwise</p>
  
  <p>I am able to rotate the menu via touch input, but the problem is the following:
  Every time the finger touches the display, the rotation is reset.</p>
  
  <p>E.g. You can swipe up, the menu rotates and stays in place. But when you want to swipe up again to rotate even further, the rotation resets and starts over.</p>
  
  <p>I guess the problem is very simple, but I tried a lot of stuff and nothing ever changes.</p>
  
  <p>My code:</p>
  
  <pre><code>class{
  
      // ...
  
      void Update(){
  
          if(Input.touches.Length &gt; 0 &amp;&amp; Input.GetTouch(0).phase == TouchPhase.Moved){
                  transform.rotation *= Quaternion.AngleAxis(Input.GetTouch(0).deltaPosition.y, Vector3.forward);
          }
      }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>