   Direct an object to a target
  Hilisten, I need an algorithmthat direct an object A (with a speed of 3 pixels for each cycle)on a target B.In fact this algorithm gives me the number of pixels that object Ahas to do to reach the target...Es.SupposingA.x = 0B.x = 10object A reach B in 4 turns andalgorithm function gives me3 (max speed)3 (max speed)3 (max speed)and 1 because the distance is now of 1 pixelThanks !!!   