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://i.sstatic.net/HD5IB.jpg

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://i.sstatic.net/0dRtC.jpg

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\$
1
  • \$\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\$
    – user115399
    Commented Dec 29, 2018 at 10:37

1 Answer 1

1
\$\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\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .