Search Unity

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

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice

Root motion rotation not applied in blend tree

Discussion in 'Animation' started by AhrenM, Jul 2, 2017.

  1. AhrenM

    AhrenM

    Joined:
    Aug 30, 2014
    Posts:
    73
    Hi all,

    I was trying to build a 2d blend tree that incorporated both forward motion and left/right turning. For some reason the turns weren't getting applied to the rotation of the asset so it stayed facing in it's original forward direction.

    In an effort to debug I paired the tree right back to a single turn animation and the root motion rotation still doesn't get applied. After the animation plays a loop the character resets to it's original y rotation.

    The problem only occurs in (any) a blend tree. Playing the animations in normal motion fields yields the expected result which is a character turning and facing a new direction.

    My repo with a 1d blend tree uses this set up:

    RotationIssue.JPG

    Even in the preview window I get the behaviour. If I preview the anim with the 'right_turn_90' selected, correct rotation is applied and avatar steps around in a circle. If I select the Blend Tree and it preview, the character repeats turning over the same 90 degree arc.

    Is there anything special I need to do to have root motion rotation applied in a blend tree?

    All the best.

    A.
     
unityunity