Answered by:
Is this a good solution?
Question

yo!
i just coded a simple spring! and i want to know if this is a good solution for it: MZS896 (i know, it works only for the y axis and the car doesnt rotate, but that might be changed one day..)
its a kinda stupid solution if you ask me. but it works very well!
btw, you can set the amount of wheels on the top of the code.
Live for nothing, OR CODE FOR SOMETHING! Edited by Dudeson Thursday, November 26, 2009 8:46 PM
Answers

One thing, try the following for the wheel rotation to look more natural:
Shapes.Rotate(Wheel[i],Wheel_X[i]*(180 /(Pi*35)))
perimeter = 2.pi.r (2.pi is a full circle)
therefore distance travelled (Wheel_X) = angle.r, where r = 35
angle= Wheel_X/35, this is radians so in degrees angle= Wheel_X*180/(pi*35) Marked as answer by Dudeson Thursday, December 3, 2009 9:53 PM
All replies



One thing, try the following for the wheel rotation to look more natural:
Shapes.Rotate(Wheel[i],Wheel_X[i]*(180 /(Pi*35)))
perimeter = 2.pi.r (2.pi is a full circle)
therefore distance travelled (Wheel_X) = angle.r, where r = 35
angle= Wheel_X/35, this is radians so in degrees angle= Wheel_X*180/(pi*35) Marked as answer by Dudeson Thursday, December 3, 2009 9:53 PM


