- Home /
Question by
aegis123321 · Dec 27, 2020 at 04:51 PM ·
animationrotationanimatorquaterniontransition
How to interpolate rotation with Euler angle instead of Quaternion in Animator transition and blend tree?
I have a problem in 2D game.
The animations only use eulerAngle.z. The interpolation works perfectly in the single animation. But it does not work in blending two states.
For example, One animation clip A is from 0 to 190 degrees, clip B is 0 to -190 degrees.
And I make a transition from A to B at the end of the A.
The result is that the angle goes from 0 to 190, and then 190 to 360(0), and finally 0 to -190.
What I want is 0 to 190, 190 to 0(go back), and 0 to -190.
Is there any way to do that?
Comment