- Home /
[Animation] Objects rotating in the wrong direction
Hi, i'm having a problem with the animation system in unity, that's what happens: i create a new animation i set, in frame 0, the coordinates (also angles) the various objects to animate i set, in frame 10, the final position that i want but, it spins the object in the wrong direction. example: i got an arm that is at 75°, i set it to became 330°, it spins counterclockwise (wrong direction), so i thinked that adding at frame 5 (in the middle) a keyframe that sets it to 22° would fix the problem, but from frame 0 to 5 it work ok, but from 5 to 10 it start spinning like crazy. i noticed that i can't set negatives values for the angles so i've no idea how to fix this issue. thanks in advance for the help
If you only have 10 frames, why not set its rotation for every frame?
because the animation would be ugly as i won't know the right degree, and it would take long. i wanted a reliable solution. thanks btw
This really is a work around, but if it works right? Don't assume it will look ugly until you've tested it. Use simple math - if you want the animation to rotate 330 over 10 frames each frame will rotate 33.
Your answer
![](https://koobas.hobune.stream/wayback/20220612082642im_/https://answers.unity.com/themes/thub/images/avi.jpg)