Muscles Crossing Hip and Knee Joints Most anterior compartment muscles of the hip and thigh flex the femur at the hip and extend the leg at the knee Most.