Search Unity

Question How does Animator calculate root motion rotation?

Discussion in 'Animation' started by gyx920820, May 17, 2023.

  1. gyx920820


    Oct 8, 2015
    As we know, an animation clip with root node has "RootT" and "RootQ" curves.

    When animator plays rootmotion, how does it calculate rotation?

    Before I test it, I thought it will use current frame rotation compared to first frame rotation. then animator should use the eulerAngles.y to rotate gameobject.

    BUT it doesn't when the rotation is complicated. like (13,45,-34) .When the rotation has X and Z rotation, the rootmotion rotation will not be the euler y.

    So how does unity calculate it ?