I’m a bit new on Unreal Engine 4 and i’m trying to make my character rolling when i press an input, so i used a Mixamo roll animation combined with root motion and it work perfectly.
But the thing is that when the animation end, my character doesn’t return to his basic rotation.
I suspect that your character doesn’t have a “root” bone.
“Root” bone is usually located at character’s feet (point at the ground where character is standing) and “hip” bone is parented to that.
I think in your case character doesn’t have a “root” bone, so when it rolls it actually rotates collision capsule, and when animation ends capsule gets stuck.
Might be wrong about it. Not having a root bone is a fairly common problem with mixamo characters.
You’d need to edit the rig in maya or whatever is available to you, add “root” bone to it, and then properly transfer animation somehow. If that’s mixamo animation, you should be able to upload your char to their site, apply animation to it and download it back. When character already has a root bone their retargeting service should transfer root movement properly.
In this case, it might work, since the roll animation is not going up in the air. However the automatic generation of the root joint done by Mixamo causes the root to get some rotation applied from the projection on the the ground plane. This can cause issues. I have personally done the fix for Mixamo animations and root motion by using their normal FBX download option and then adding the root manually in Maya and then copying relevant keys from the hip (which is the root for Mixamo) onto my new root joint.