Move Distance Friction
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 =)
Comments are currently disabled on games.