| name | lie-down-and-sleep |
| description | Walks the character to the bed and lies it down flat on the mattress to rest or sleep. Use whenever a command mentions lie, lie down, lay down, lie on the bed, go to bed, go to sleep, sleep, nap, take a nap, rest, doze, or pass out. (For sitting on furniture use sit-on-furniture; to get back up use get-up.) |
| category | furniture |
| disable-model-invocation | true |
| subskills | ["sit-and-stand","walk"] |
lie-down-and-sleep
Lie the body flat on the bed. Like sitting on furniture, the trick is to travel
to the bed and let the engine lay the body down — it knows the mattress height
and tips the WHOLE body horizontal (face-up, head toward the pillow). If you only
pose the limbs, the body stays standing and never lies down.
How (one Action: moveTo the bed-lie anchor + a relaxed pose)
- Pick the bed anchor from
state.beds (e.g. bedLie). The engine also
fuzzy-matches "bed" → bedLie.
- Emit
moveTo:{ "target":"<bed anchor>" } to walk there.
- Emit a relaxed, straight-bodied
pose (legs extended, arms a little away from
the torso). Absolute local euler deg, XYZ:
LeftUpLeg:[0,0,180], RightUpLeg:[0,0,180], LeftLeg:[0,0,0], RightLeg:[0,0,0], LeftUpperArm:[0,0,70], RightUpperArm:[0,0,-70].
The ENGINE lays the body flat on the mattress on arrival (it tilts the body
~−90° about X so it rests on its back at mattress height). Do NOT emit root /
pitch — lying flat is internal to the engine; just give it the bed anchor and a
relaxed pose.
Worked Actions (minified)
- "go to sleep on the bed" →
{"durationMs":3000,"moveTo":{"target":"bedLie"},"pose":{"LeftUpLeg":[0,0,180],"RightUpLeg":[0,0,180],"LeftLeg":[0,0,0],"RightLeg":[0,0,0],"LeftUpperArm":[0,0,70],"RightUpperArm":[0,0,-70]},"say":"Time to rest."}
- "lie down on the bed" →
{"durationMs":3000,"moveTo":{"target":"bedLie"},"pose":{"LeftUpLeg":[0,0,180],"RightUpLeg":[0,0,180],"LeftLeg":[0,0,0],"RightLeg":[0,0,0],"LeftUpperArm":[0,0,75],"RightUpperArm":[0,0,-75]},"say":"Lying down."}
- "take a nap" →
{"durationMs":3000,"moveTo":{"target":"bedLie"},"pose":{"LeftUpLeg":[0,0,180],"RightUpLeg":[0,0,180],"LeftLeg":[0,0,0],"RightLeg":[0,0,0],"LeftUpperArm":[0,0,70],"RightUpperArm":[0,0,-70]},"say":"Just a quick nap."}
Notes
- Use a long
durationMs (~2500–3000): the body walks to the bed, then lies down.
- To wake up / get off the bed, use get-up (it stands the body back up and
removes the flat tilt).