Hi everyone. I’m created a character BP and character AnimBP. Into AnimBP I added animation: idle, walk, sprint, crouching. Everything works well, but function crouch fails. When Character crouching, he goes underground. This problem is not into my mesh (i’m used standart mesh from Epic tutorials. The problem persists). My observations have shown, it all depends capsule component. When it decreases the character goes underground.
Animation is also okay (I used to create a character Fuse).
If the capsule size is not changed, everything works fine.
I using function crouch from CharacterMovement.
When crouch, location root bone of my mesh change.
Pictures of my problem.
(My Character)
(Epic Character)
Are you using root motion animations by any chance? Can we see your blueprint’s component hierarchy please? Perhaps the character mesh is not attached to the capsule.
It looks like there are two meshes. Which one has your character? The mesh (inherited) should stay in place when you crouch but perhaps the second mesh is getting moved.
It looks like there are two meshes. Which one has your character? The mesh (inherited) should stay in place when you crouch but perhaps the second mesh is getting moved.
My character is “skeletal mesh” and this is what animates. Maybe there is somewhere in the animation checkbox in charge of the animation bone Root?
Try using Mesh (inherited) for your character. There is some c++ code in character that keeps this mesh in the capsule when crouch() happens, but not for your SkeletalMesh.