Unity tutorial running jump animation works incorrectly

Hello, everyone!
Now I’m learning Junior Programmer: Create with code 2.
Everything is ok, but on Unit 3, section 3.3 - don’t stand there while Running Jump animation is running Player object shifts to the right on 3. There is no this bug in video, I did everything step by step.
Can anyone tell, where is the problem? Google didn’t show me any results.
Now I fixed the problem by directly teleporting the player to the initial position, but ot looks very poor.

Hello! I have the same problem. Were you able to fix this without teleporting the player?

Go to Animator window, Jumping layer. Double click Running_Jump state. Scroll down in the inspector to find “Root Transform Position (XZ)” and enable “Bake Into Pose” checkbox.

I know it’s been 2 years since the original question, but I’ll leave this here in case anyone looks for it. Just had the same issue and solved it by messing around in the Animator.

1 Like