title: Unity Movement Touch
body: <p>I'm making a football-penalty like game and I need to move the ball on mobile too. I'm using this code now:</p>
  
  <pre><code>float moveHorizontal = Input.GetAxis("Horizontal");
  float moveVertical = Input.GetAxis("Vertical");
  Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
  rigidbody.AddForce(movement * speed * Time.deltaTime);
  </code></pre>
  
  <p>How can i make a movement System For mobile?</p>
  
  <p>Also, there is someother codes that control the ball (like when you pass a line (just like bowling) you can only change it's place 1/10). But they are based on this code... Game script is c#...</p>