How can I rotate an animation?(RootMotion)

Hello, I need help with my character animation attack: when the rootMotion is enabled my character rotate
strangely…
Can I rotate the animation or is there another solution?
Thanks for your help and forgive me for my bad english.

I need help with this too, can anyone help with this?