Move Distance Friction

by Crazy Star

Posted on April 07, 2007 at 9:28 PM

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 =)

StopThatGuy commented April 08, 2007 at 9:19 AM
Sorry, I can't test it cause its in GMK format :(
Dom commented April 09, 2007 at 3:20 AM
headless commented April 09, 2007 at 10:13 AM
nice and simple, could be used for a enemy crosshair
DevonX commented April 14, 2007 at 5:39 PM
cool :) 10/10