Move Distance Friction

A little something I cooked together. This is a lesson in what can be computed with a script. Here's the circumstances: You have an object with a speed and a direction - each step the object moves in the desired direction with length speed and the speed is then multiplied with a number less than 1 and greater than 0, the friction. Now... how do we know how much to add to the speed if we want to roll smoothly to our target? Download this example to find out =)