Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question How to interpolate rotation with Euler angle instead of Quaternion in transition or blend tree?

Discussion in 'Animation' started by aegis123321, Dec 24, 2020.

  1. aegis123321


    Jul 5, 2015
    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?