Smooth Crouch Changes Mesh Position

Hi, I’m coding my own smooth crouch, but when I change the capsule half height, the mesh is lowered, as the capsule is shrinking to the center, not to the bottom. What can I do to get all of my children to maintain their same height, while changing the capsule half height?