-
wheel turning script
Hi all. I need a script that allows a wheel to roll the correct number of revolutions based on its radius and the distance it moves along the x axis. Im not proficient enough in code to do this yet. I do know that the circumference is the distance travelled in one revolution. A=πr squared. So if radius is 100 units then A equals 31415.93. Im not sure why, but if i move the decimal point 2 units to the left (314.15), this equates to the distance along the x axis my wheel should roll. Ultimately i want to be able to move it a distance with an ease to and have it decelerate its spin and grip the road accordingly. Coders please help.