0
\$\begingroup\$

I am trying to create some animations for a car model in Unity and I have a problem with the rotation of the wheels

https://imgur.com/a/HcWxyob

Here I can set the rotation properly as the pivot point seems to be at the center like how I want it to be but

https://imgur.com/a/TUpXBDX

When I play the animation it rotates on some other pivot point outside of the center of the wheel and even the car

Would you know how to fix this? Sorry if this is a dumb question

Thanks!

\$\endgroup\$
  • \$\begingroup\$ You could just use a script with a "Speed" variable, enable the script and control the speed variable in the animation. This way you can't go wrong about weird rotations around pivot points :) \$\endgroup\$ – Gabriele Vierti Dec 29 '18 at 10:37
0
\$\begingroup\$

In this case, the animation contains rotation in x axis. Just rotate the tire without altering the position in each keyframe. just rotate the x tire in animation Since object position can be changed with Transform.Translate function in its implementation.

\$\endgroup\$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.