OnAnimatorMove() is freezing

Hi, I’ve a problem with the OnAnimatorMove() function. The function set the parent position and rotation but it does it jerky.

void OnAnimatorMove()
{
    Animator animator = GetComponent<Animator>();
    transform.parent.rotation = animator.rootRotation;
    transform.parent.position += animator.deltaPosition;
}

(video) https://videos.sl-projects.com/upload/videos/2021/10/2XPDCY1c5myjqBaimxFJ_27_aa9ee3547b837a15d5b8c045e41848f0_video_2048p_converted.mp4

And if I set this into the update loop, it makes a Bayblade spinning top. x)
(video) https://cdn.discordapp.com/attachments/793873256239071242/902864565929402398/Desktop_27-10-2021_12-20-42.mp4

How I am supposed to do to avoid this problem?

I found the issue, I had to choose “Animate Physics” in the animator’s Update Mode.