Hi, I’m currently working on implementing a melee attack using an Animation Montage that uses root motion. I’ve enabled root motion in the animation asset and in the montage, and my character’s movement mode is set to “Root Motion from Everything.”
However, when I play the montage in-game, the character does not move forward with the animation as expected. It just plays in place. I’ve checked that the animation itself has root motion curves.
Is there something I might be missing in the character setup or montage configuration? Do I need to manually sync the capsule component movement?
Any help would be great, I’ve been stuck on this for a few days!
Can you please show the montage and the anim graph section of your animation blueprint?
The issue can be caused by different reasons, but generally speaking, a possible cause is a missing montage slot. Have you added one inside the animation graph?
The default slot is automatically assigned to your montage, so make sure to add it to your anim graph.
Another possible cause is that you mentioned the animation has the curves, but that doesn’t necessarily mean the montage has “proper” root motion. To check if your animation has proper root motion, go to the animation editor:
Swith to the Skeleton tree tab, and select the root bone.
Then, switch to the Asset details tab and uncheck root motion.
The character should move leaving a red trail behind, indicating the proper root motion shown below: