Log inGet started
World

Save Point

Branchmain
Branchesmain
Commit8937fc8d08

README.md

seating.life

Idle life for every avatar in the room, layered over whatever pose it holds: breathing, posture drift and weight shifts, glances and a head that turns toward what matters (the running TV, the Game Boy in hand, a friend walking up or emoting), seated fidgets (sinking back into the cushions, feet shifting, a foot tap, a shoulder roll), and, while a pad or the Game Boy is held, both hands gripping it with the thumbs following the buttons held and the body leaning into play.

Holding a pad, the holder's own peer seats it for that body (PAD_AT: in front of the hips at lap / lower-chest height, face tilted to the eyes, d-pad on the left); the grip widens for big hands. Each thumb is aimed at its own control by a small solver run on the rig's own skeleton at the hold (FACES: each prop's face, where every control sits, and the travel a press makes, 1.5-2.5 cm), so the other thumb stays still. Life.thumbTravel(avatar) reports how far each solved press carries the thumb tip.

Every peer runs it for every avatar from state all peers already share (the session clock and avatar id for timing, the held prop's synced button word PadControl.buttons / RetroStation.pad, positions and seating.emotes), so everyone sees the same motion and it sends nothing of its own. Standing it rides the body's AnimGraph as a node; seated it lays over seating.pose through pose.overlay. Far or off-screen avatars update less often.

Seat requires it, so any room with a seat runs it.

local Life = require("seating.life")
print(Life.stats())   -- { avatars, updated, ms, applies }