| name | hopscotch |
| description | Plays hopscotch, alternating one-foot and two-foot straddle hops forward, via a sequence with root.y arcs. Use when a command mentions hopscotch, hop scotch, one-foot two-foot hops, or play hopscotch forward. |
| category | locomotion |
| disable-model-invocation | true |
| subskills | ["move-leg","balance-and-posture"] |
hopscotch
The hopscotch pattern: hop to one foot, then a straddle landing on both, advancing forward.
Composes: move-leg + balance-and-posture
How
- Use a
sequence with loop:false. Frame root is ABSOLUTE; compute the travel axis from state.position+state.faceDeg (0=+Z, 90=+X). The example assumes origin facing +Z.
- Alternate a single-leg hop (other knee up) and a two-foot straddle landing (legs abducted); pop
root.y each hop.
durationMs ~2000.
Example
- "play hopscotch" ->
{"durationMs":2000,"say":"Hopscotch!","sequence":{"loop":false,"frames":[{"t":0,"pose":{"RightUpLeg":[90,0,0],"RightLeg":[90,0,0]},"root":{"y":0.25,"z":0.4}},{"t":0.33,"pose":{"RightUpLeg":[90,0,0],"RightLeg":[90,0,0]},"root":{"y":0,"z":0.7}},{"t":0.66,"pose":{"LeftUpLeg":[0,0,150],"RightUpLeg":[0,0,-150],"RightLeg":[0,0,0]},"root":{"y":0.25,"z":1.1}},{"t":1,"pose":{"LeftUpLeg":[0,0,180],"RightUpLeg":[0,0,180]},"root":{"y":0,"z":1.4}}]}}
Limits & posture
Keep ≥1 foot grounded except at a jump's airborne apex; stay inside human joint ranges and keep weight over the support — see balance-and-posture.