CapsuleComponent Lock Rotation X and Y doesn't work

Hi,

when I play anim montages that blends running & attacking, and my character bumps into collision with some obstacle its CapsuleComponent permanently rotates. Is there a way to lock X and Y rotation of it? Lock Rotation X, Y in CapsuleComponent’s details doesn’t work.

It happens for both AnimMontages using root motion and not.

The problem was connected with animations. They were designed for skeleton with the root bone in hipps, but my character had it between legs. I had to correct my animations (add a proper root bone, and transfer translation curves from previous root bone to the new one Part 1 - Howto get Mixamo rootmotion into UE4 - YouTube).