Search Unity

Root motion animation + rotate

Discussion in 'Timeline' started by Casanuda, Jan 26, 2019.

  1. Casanuda

    Casanuda

    Joined:
    Dec 29, 2014
    Posts:
    53
    Hi,

    I am trying to 'steer' an walking animation clip by recording rotation on an overide track.

    What happens though is that even though there is only rotation in the recording, all root motion is removed and the humanoid just stays in place and rotates.

    This seems like a very simple thing to try do with timeline yet I cannot figure out how to simply rotate the character somwhere midway through a clip.

    Any assistance would be appreciated,

    Thanks
    Cas
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Translation and Rotation are linked with root motion. You can't override one without affecting the other.

    One thing you could try is use the OnAnimatorMove() monobehaviour callback, it will let you modify the existing root motion. Make sure you use [ExecuteInEditMode] if you want the results to preview correctly.