Animation that changes axis of rotation of my character.

Hello, my game is starting to take shape,
So I decided to add some visual effects ^^

I just created a Running Slide animation to my character.

I still have a very poor command of the animation interface.

I made simple state :
notSlide and Slide.

notSlide ->Slide condition: Slide_trig
Slide ->notSlide condition: Slide_Bool = false

The animation is play.

My problem :

is that this animation changes the axis of rotation of my player when it plays.

So if I don’t check “Apply Root Motion” the animation plays without using this rotation.

if I check “Apply Root Motion”, my animation plays perfectly, but my player finds himself at the end of the animation with a modified Y rotation.

Should I refix the Y rotation in my code or can this parameter be in animator.

Did I do something wrong, or is this normal? Is it asking for a setting?

My player must stay in a Y=90 position. I should say if NotSlide is active Player.transform.rotation = Quaternion.Euler(0, 90, 0); That’s right ??

Solution: Bake into pose

1 Like