- Home /
Tweened rotation animation in a single axis, spins around others if the angle flips from going lower than 0.
I'm trying to rotate a child object of a Voxel hand, to wind up a sword attack.
I will use a series of images to demonstrate my issue
The desired final location, which has only rotated in X and moved backwards in Z
If I use the graph to say those axis cannot move, the resulting animation can go no higher than the sword pointing vertically upwards.
The best I can get is for the sword to go the wrong way round the axis, which isn't what I'm after. (Imaging raising a sword to above your shoulder, now imagine doing it with your elbow going the other way...)
Now, I'm new to tweening, so I assume this is do with the fact that in order for an angle to go from 0 to then 359, it has reverse some of the other axis?
Your answer
![](https://koobas.hobune.stream/wayback/20220613125904im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Undocumented property: Keyframe.tangentMode 3 Answers
How to make an Animation movement happen only after certain keyframes? 0 Answers
How to add new curves or animation events to an imported animation? 6 Answers
SetCurve not working for me. 1 Answer
GameObject to follow another GameObject through a spline with a dynamic end waypoint 0 Answers