title: Unity - Move object until point
body: <p>I'm using the code below to move a Ball to determined point. But, the ball are "teleporting" to there, how can i roll the ball until the point ?</p>
  
  <pre><code>void Update(){
              if (Input.GetMouseButtonDown(0) &amp;&amp; EventSystem.current.currentSelectedGameObject != ButtonDiminuir &amp;&amp; EventSystem.current.currentSelectedGameObject != ButtonAumentar &amp;&amp;
         EventSystem.current.currentSelectedGameObject != BarraForca) {
                      transform.position = Vector3.Lerp(transform.position, new Vector3(transform.position.x, transform.position.y, -9.0424f), 2 * Time.deltaTime);
                      Anim.Play("Kick_Up");
              }
  }
  </code></pre>