Hi guys,
I have a question, why the wheel when translate in the negative axes like -90 Y, start to works in the opposite way than the vehicle direction? I used this expression to animate the wheels:
L_F_Tire.rotateX = Root_CTRL.translateZ + Root_CTRL.translateX;
L_B_Tire.rotateX = Root_CTRL.translateZ + Root_CTRL.translateX;
R_F_Tire.rotateX = Root_CTRL.translateZ + Root_CTRL.translateX;
R_B_Tire.rotateX = Root_CTRL.translateZ + Root_CTRL.translateX;
Solved! Go to Solution.
Solved by mcw0. Go to Solution.
Sorry for the short answer. Something came up. Here's a better explanation. You want to measure the distance traveled. Usually, a curve is used as you can get the arclength of the curve at any point along the curve. Divide that by the circumference of your wheel and then multiply by 360. That's the quick and dirty way to do wheels.
The optimal way would be to add incremental rotation frame by frame. This approach allows you to do burnouts and to accelerate and decelerate. The first method will have very apparent issues if you change your speed.
Can't find what you're looking for? Ask the community or share your knowledge.