- Home /
Why are transform values in inspector different from animation tab?
I’m trying to make animation in timeline. But transform values in animation tab and inspector are different from each other. It causes problem when ı try to rotate player. It doesn’t rotate the way I want.
Answer by DavidGeoffroy · Feb 27, 2021 at 09:49 PM
There's a warning at the bottom of your screenshot explaining why.
Animation evaluation writes in quaternion, but inspector values are in Euler. A quaternion represents all the equivalent rotations that give the same orientation (0, 360, 720, etc..) whereas a Euler angle also gives you the number of rotations in each axis.
For a single clip, we have workarounds that let us hint to the inspector what the correct Euler value is, but for a full Timeline, between offsets and blending, we're missing information to hint the inspector correctly
Thanks for answer. When I try to rotate spaceship a little bit, ıt spins around. What should ı do ? How can I workaround ?
Answer by alpayoguz97 · Feb 27, 2021 at 10:17 PM
I found the solution.
https://answers.unity.com/questions/1303658/animating-object-does-not-rotate-as-it-should.html