Education · Upper legs
Hip flexion
Hip flexion is a beginner-level education movement targeting the hip flexors, written in Posecode, a small open-source language that capable language models can use to describe human movement as text. Authored joint targets and reach-IK solves are constrained to Posecode's configured per-axis bounds. Those bounds constrain the visualization, but they do not certify that a complete movement is safe or clinically correct. This page documents a code example; it is not exercise instruction.
▶ Open Hip flexion in the playground →Movement phases
Phase cues are display-only coaching text. The executable joint and contact directives in the source below determine the animation.
- Lift2.5s · flow Raise the straight right leg forward: sagittal-plane hip flexion
- Lower2.5s · settle Lower the leg back under the hip
The .posecode source
This is the exact text used by the linked playground animation: phases and joint angles, not 3D transforms.
posecode stretch "Hip flexion (ROM demo)"
rig humanoid
pose start = standing
step "Lift" 2.5s flow:
hip_right: flex 90
pin: foot_left floor
cue "Raise the straight right leg forward: sagittal-plane hip flexion"
step "Lower" 2.5s settle:
hip_right: flex 0
ground-lock: foot_left
reach: foot_right floor
cue "Lower the leg back under the hip"
repeat 4