Capsule Component pushes the mesh away when tried to reattach to the mesh?


I was trying to implement the jump attack animation for my enemy character. But the issue is that the capsule component remains at the starting position from where the enemy launches attack. That’s why i tried to move the capsule manually by setting the world location where the hip is currently in after the attack launched. The problem is that the mesh goes jumping forwards as if it was pushed away from the capsule when capsule comes to the new location. Can anyone please help me fixing the issue?

I also made a video of it which is in slow motion to show what’s exactly happening. hope it helps.