| name | moonwalk |
| description | Performs a moonwalk, gliding the body smoothly backward while still facing forward and shuffling the feet. Use when the command mentions moonwalk, moon walk, or glide backward like Michael Jackson. |
| category | dance |
| disable-model-invocation | true |
| subskills | ["move-leg","plant-foot","balance-and-posture"] |
Moonwalk
Glide backward while facing forward. Use a root translation (NOT moveTo, which
would turn the body to face its travel) so the character keeps facing ahead, and
shuffle the feet between flat and on-the-toes.
How
- Slide back with
root x/z each frame, moving OPPOSITE the current facing
(faceDeg 0 -> decrease z; compute from state.position/state.faceDeg).
- Alternate the feet: one toe down (
*Foot:[60,0,0]) while the other is flat
([90,0,0]), swapping each frame for the iconic shuffle.
- Do NOT set
faceDeg — staying put keeps it facing forward as it slides.
Example
- "do the moonwalk" (facing +Z from origin) ->
{"durationMs":2600,"say":"Hee-hee!","sequence":{"loop":2,"frames":[{"t":0,"pose":{"LeftFoot":[60,0,0],"RightFoot":[90,0,0]},"root":{"z":-0.6}},{"t":0.5,"pose":{"LeftFoot":[90,0,0],"RightFoot":[60,0,0]},"root":{"z":-1.2}},{"t":1,"pose":{"LeftFoot":[60,0,0],"RightFoot":[90,0,0]},"root":{"z":-2}}]}}