Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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?