Search Issue Tracker

Duplicate

Votes

0

Found in

2018.3.0a4

2018.3.0f2

2019.1.0a1

2019.2.0a1

Issue ID

1112616

Regression

Yes

The FBX model animation jumps in different Scene places when Root Motion disabled/enabled after frame update

Animation

-

How to reproduce:
1. Open attached "case_1112616-rootMotion" project
2. Play the Scene

Expected result: The object moves in one direction
Actual result: The object animation jumps in different Scene places

Reproducible: 2018.3.2f1, 2019.1.0a14, 2019.2.0a1
Not reproducible: 2017.3.0a1, 2017.4.18f1, 2018.2.20f1, 2018.3.0a3

  1. Resolution Note (2018.3.X):

    Root Motion application has changed in 2018.3 to make it more coherent.
    To reproduce the behaviour of Root curves (Root T and Root Q) with ApplyRootMotion OFF in 2018.3 and following, please turn on Apply Root Motion, and implement OnAnimatorMove like this:

    public class RootMotion : MonoBehaviour {
    public bool enableRootMotion;
    private Animator animator;

    private void OnAnimatorMove()
    {
    if (animator == null)
    animator = GetComponent<Animator>();

    if (enableRootMotion)
    {
    animator.ApplyBuiltinRootMotion();
    }
    }
    }

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.