| name | sidestep-dodge |
| description | Quickly sidesteps to dodge something, keeping facing, via a fast translating sequence. Use when a command mentions sidestep, dodge to the side, dodge out of the way, step aside quickly, or evade sideways. (For a duck/dodge in place, use dodge.) |
| category | locomotion |
| disable-model-invocation | true |
| subskills | ["shift-weight","walk","balance-and-posture"] |
sidestep-dodge
A fast lateral hop-step out of the way and a quick recovery to a balanced stance. Translate root while OMITTING faceDeg so the heading holds.
Composes: shift-weight + walk + 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. Jump x to the side; do NOT set faceDeg.
- Lean away (
Spine Z) and lift the lead knee, then settle to a balanced stance.
- Short
durationMs (~800).
Example
- "sidestep to dodge" ->
{"durationMs":800,"say":"Dodge!","sequence":{"loop":false,"frames":[{"t":0,"pose":{"Spine":[0,0,0]},"root":{"x":0}},{"t":0.4,"pose":{"Spine":[0,0,-12],"RightUpLeg":[30,0,0]},"root":{"x":0.7}},{"t":1,"pose":{"Spine":[0,0,0],"RightUpLeg":[0,0,180]},"root":{"x":0.9}}]}}
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.