Root motion adds a wierd rotation

Hi,

As the title suggests, i get a wierd rotation motion at the end of most of my animations when i apply root motion. Does anyone knows how to fix it? Do i need to fix the animation itself or just in UE ?

Well i found that mixamo adds rotation to the rootbone and i believe this is not a good idea for root motion… ?