Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Animator.velocity behaviour changed?

Discussion in 'Animation' started by LoftySky, Jan 2, 2019.

  1. LoftySky

    LoftySky

    Joined:
    Mar 30, 2015
    Posts:
    13
    Hey,

    Just updated to 2018.3, but characters are no longer walking. Previously I was taking the value from animator.velocity and applying it to my avatar. Now that value seems to be always 0,0,0 UNLESS I have 'Apply Root Motion' on the Animator (which I clearly don't want since I am applying the velocity elsewhere).

    How does one get the velocity of the current animation now?
     
  2. LoftySky

    LoftySky

    Joined:
    Mar 30, 2015
    Posts:
    13
    FYI. Looks like these values are only valid and accessible during calls to OnAnimatorMove().
     
  3. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    Jup I was doing the exact same thing in 2017.

    So the code needs to go to OnAnimatorMove or did you find another solution?