Physiotherapy · Neck
Neck rotation
Neck rotation is a beginner-level physiotherapy movement targeting the neck, 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 Neck rotation 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.
- Look right2s · flow Turn slowly to look over the right shoulder
- Look left2.4s · flow Pass through center and turn to the left
- Center1.6s · settle Return the head to neutral
The .posecode source
This is the exact text used by the linked playground animation: phases and joint angles, not 3D transforms.
posecode stretch "Neck rotation"
rig humanoid
pose start = standing
step "Look right" 2s flow:
neck: twist-right 60
ground-lock: feet
cue "Turn slowly to look over the right shoulder"
step "Look left" 2.4s flow:
neck: twist-left 60
ground-lock: feet
cue "Pass through center and turn to the left"
step "Center" 1.6s settle:
neck: twist-left 0
ground-lock: feet
cue "Return the head to neutral"
repeat 4