The feet are connected to the hip through the legs. There are three joints, the ankle connects the foot to the lower leg. The knee connects the lower leg to the upper leg, and the hip joint connects the upper leg to the hip.
We shall show both a skeletal view and a schematic view:
We simplify the action by focusing on the hip joint and the knee, and ignoring any movement by the ankle. This allows us to show how the weight is shifted from one foot to the other. We shall assume that the hip stays level and at right angles to the direction of motion. We also ignore any contribution by the ankle, such as for a heel to toe roll.
We further simplify the action by focusing on motion in a single plane, straight ahead of the actor, without any turns or sideways motions.