Center character capsule around mesh after animation

Hi.
I have an animation of a horseman getting off a horse.
Problem is, the animation takes the character mesh outside of the capsule, and then when normal locomotion animation resumes, the character mesh jumps back.

Is there any way to make it so that the character mesh stays where it is, and the capsule component centers around it when animation is done?

Try enabling root motion to have the animation modify thr capsuke location. The answering mation needs to have been designed with motion on the root for this to work

Darn. I guess i need to figure out how to add root motion to the animation, because it’s just plain regular animation.

Thanks