My character slide back to starting point after the attack animation play

My character slide back to starting point after the attack animation play, I tried to enable root motion in the attack animation but still the same problem, how can i fix it.

clip of the bug :Watch Pangaea - Unreal Editor 2025-09-10 23-14-31 | Streamable

Hey, so I set Root Motion Mode to “Root Motion from Everything” in my animation blueprint as well as enabling the root motion only on the attack animation, and that seems to make the bug go away. However, I was wondering if that’s the right thing to do, if it will cause other problems in the future, and why that fixed it.

UE uses two type of animation sets.

  1. In place is reactive based on what state the “Moment Component” is in and is typically used when a network component is needed to move the player relative to 3d space. The movement component is needed to replicate the current movement state of the player to other clients connected and the in-place animation is set to the current animation state. So if the MC is moving right the running/walking animation is played relative to the bounding box (capsule).

  2. Root Motion on the other hand contains the necessary relative position in, of course, with in the root making the animation event driven and not dependent on the movement component.

If you do not tell UE that it’s to use root motion instead of in-place then the animation will be pulled back to the starting position as being relative to the root and not what is driven by the movement component. When told to use root motion UE will instead ignore the MC and track the roots position and the next time a RM event is triggered the current RM animation will continue from the last position of the root.

SO yes what you did is what is needed to set up the use of root motion.