Why is crouching causing my character transition into falling through the floor?

i’ve got a blueprint which transitions between crouched and uncrouched instead of the built in nodes as i wanted a smooth transition instead of instant crouching. the problem is when i crouch while standing still it makes the capsule component half its height but stays in mid air instead of lowering its height and having it rest on the floor. also once it is in mid air it only falls once i press a movement direction. then if i release the crouch button( while standing still) it returns to its original height but clips through the floor getting stuck. i thought maybe it was to do with the center point of the capsule but i do not know how to change it.

It happened to me with a custom crouch code I Wrote, I found that using CharacterMovement->UpdateFloorFromAdjustment() sets the capsule component on the floor while crouching or uncrouching, but it works sometimes, so if you happen to know a better way, please let me know. Cheers!!

Hi Mikey,

I’m not sure if this method will work for you, but here is the smooth crouching function I came up with.

TJ