Trouble with animating a wheel spin
Hi everyone
I still consider myself as pretty new to Unity and I have trouble with animating the wheels of my car. I got the car model from the asset store and the wheels have a basic rotation of -90° on the X axis in order for them to be standing up (my English may not be good enough to explain it).
I tried to add an animation to rotate them around the Y axis, since it's the one parallel to the ground. But the spinning effect I get make the spin act like my rotation was on the X axis. Same goes for the Z axis.
I don't know how to bypass that. Does anyone have an idea?
Thanks in advance
Answer by Wohran · Feb 14, 2017 at 08:40 AM
Looked for a solution and find out that parenting the wheels to a parent with the X rotation already applied on it fixed the issue.
Your answer
![](https://koobas.hobune.stream/wayback/20220612110718im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I make it so that an object rotates on only one axis? 0 Answers
I have a tilted 3D model. How can I spin it while preserving the angle? 0 Answers
Unity CarController without (Rigidbody and) WheelController / WheelCollider? 0 Answers
Should giving a negative torque make it turn slower? 0 Answers
save wheel Collider suspensionSpring targetPosition value 0 Answers