title: Smooth moving from A to B
body: <p>I have a android game where I have to from time to time move camera (visible screen part) from point A to point B.</p>
  
  <p>Obviously I could do it like that:</p>
  
  <pre><code>camera.setCenter(B.getX(), B.getY();
  </code></pre>
  
  <p>But it does not looks good, it simply jump immediately, and what I want to achieve is smooth movement from A to B. I can access onUpdate method which is loop updating certain game objects (so I can execute certain things in certain milliseconds) </p>
  
  <p>I really can not figure out how to create such algorithm, to allow smooth movement between two points (Classifying I have no clue how to calculate what values should I add to the</p>
  
  <pre><code>camera.setCenter(camera.getX() + xValue, camera.getY() + yValue)
  </code></pre>
  
  <p>Because those values have to be calculated depends on what is distance between those two points.</p>