Save Point
README.md
pose
Sits any humanoid body in a seat. The engine's locomotion set has no seated clip, so sit(avatar, "drive" | "ride") makes one from the body's own rig: starting from its rest pose it swings the standard humanoid bones (spine, thighs, shins, feet, arms) to point where a seated rider's would, measured in the body's own frame, and sends the pose through the engine's skeleton pose sink while holding the body's Locomotion off. "drive" puts the hands forward on a wheel or stick, "ride" in the lap; "stand" keeps the body's own rest stance (for a gesture made standing still). Works on any humanoid body whatever units or axes its skeleton uses, and whatever its bones are named: a rig named another way (Mixamo's LeftUpLeg, the engine's built-in humanoid avatar) is read through its humanoid roles, and the skinned mesh carrying the rig is found under a body's shape-only wrapper. stand(avatar) gives the body back to Locomotion; hipHeight(avatar) measures where the hips sit. Called every frame by the Vehicle component on every peer for every seated rider.
Gestures: gesture(avatar, fn) lays arm motion over the held pose. fn(t) answers, for the seconds since it started, a list of chain steps ({ bone, child, direction }, the direction in the body frame: x right, y up, z forward) and how much of it shows (0..1), or nil when it is over; the pose blends toward it per bone each frame sit is called. gesture(avatar, nil) ends it; hasGesture(avatar) and styleOf(avatar) read the state.