Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 47b50fcd-5…

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…

by◐Deata·posted 2d ago
What it does

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 }

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

nonstrict

fslot(side: string, finger: string, k: number) → number

argtypedescription
sidestring
fingerstring
knumber

qmul(ax: ?, ay: ?, az: ?, aw: ?, bx: ?, by: ?, bz: ?, bw: ?) → void

argtypedescription
ax?
ay?
az?
aw?
bx?
by?
bz?
bw?

qrot(qx: ?, qy: ?, qz: ?, qw: ?, vx: ?, vy: ?, vz: ?) → void

argtypedescription
qx?
qy?
qz?
qw?
vx?
vy?
vz?

norm3(x: ?, y: ?, z: ?) → void

argtypedescription
x?
y?
z?

cross(ax: ?, ay: ?, az: ?, bx: ?, by: ?, bz: ?) → void

argtypedescription
ax?
ay?
az?
bx?
by?
bz?

dot(ax: ?, ay: ?, az: ?, bx: ?, by: ?, bz: ?) → void

argtypedescription
ax?
ay?
az?
bx?
by?
bz?

smooth01(k: number) → number

argtypedescription
knumber

hash(a: number, b: number) → number

deterministic hash noise, the same on every peer

argtypedescription
anumber
bnumber

noise(seed: number, t: number, period: number) → number

smooth value noise in -1..1 over time with the given period (seconds)

argtypedescription
seednumber
tnumber
periodnumber

seedOf(id: string) → number

argtypedescription
idstring

fk(rig: Rig, poseT: { number }, W: { number }, P: { number }) → void

forward kinematics of a pose table (stride 10): model rotations and positions

argtypedescription
rigRig
poseT{ number }
W{ number }
P{ number }

posOf(rig: Rig, P: { number }, bi: number) → void

argtypedescription
rigRig
P{ number }
binumber

rotOf(rig: Rig, W: { number }, bi: number) → void

argtypedescription
rigRig
W{ number }
binumber

toLocal(rig: Rig, W: { number }, bi: number, x: ?, y: ?, z: ?) → void

a model-space axis carried into bone bi's own frame (at the given model rotations)

argtypedescription
rigRig
W{ number }
binumber
x?
y?
z?

setAxis(arr: { number }, slot: number, x: ?, y: ?, z: ?) → void

argtypedescription
arr{ number }
slotnumber
x?
y?
z?

findBone(root: any, name: string) → any

the local avatar's thumb tip in world space (the end joint carried on 0.85 of the segment before it), or nil when the rig has no such thumb

argtypedescription
rootany
namestring

walk(e: any, depth: number) → any

argtypedescription
eany
depthnumber

measureMeshTip(A: any, side: string) → any

argtypedescription
Aany
sidestring

collect(e: any, depth: number) → void

argtypedescription
eany
depthnumber

mat(i: number) → void

argtypedescription
inumber

xf(mm: { number }, x: number, y: number, z: number) → void

argtypedescription
mm{ number }
xnumber
ynumber
znumber

meshThumbTip(A: any, side: string) → any

argtypedescription
Aany
sidestring

thumbTipWorld(A: any, side: string) → vector

argtypedescription
Aany
sidestring

thumbLift(A: any, side: string) → number

how far above the face (metres) the thumb tip is aimed so the thumb lies ON the buttons rather than its point dipping into the console: half the thumb's thickness near its tip, from its mesh (a slender thumb ~0.3 cm, the default humanoid's blocky one more), capped

argtypedescription
Aany
sidestring

axisQuat(ax: number, ay: number, az: number) → void

argtypedescription
axnumber
aynumber
aznumber

thumbChain(rig: Rig, side: string) → any

the bones from below the hand down to the thumb's end joint, top first

argtypedescription
rigRig
sidestring

thumbTip(rig: Rig, poseT: { number }, ch: any, c1: number, c2: number, c3: number, tipAt: { number }?) → void

the thumb tip in the hand's frame (rig units) under controls c1 (sweep of the base joint), c2 (curl of the base joint), c3 (curl of the outer joints), degrees; `tipAt` (rig units, in the end joint's frame) is where the DRAWN thumb ends when its mesh was measured, else the end joint carried on 0.85 of its segment

argtypedescription
rigRig
poseT{ number }
chany
c1number
c2number
c3number
tipAt{ number }?

solveThumb(rig: Rig, poseT: { number }, ch: any, dx: number, dy: number, dz: number, tipAt: { number }?) → void

the three thumb controls that carry the tip by (dx, dy, dz) in the hand's frame

argtypedescription
rigRig
poseT{ number }
chany
dxnumber
dynumber
dznumber
tipAt{ number }?

solveThumbs(rig: Rig, style: string, poseT: { number }, W: { number }) → any

every thumb press of a hold style solved for this rig at this hold pose

argtypedescription
rigRig
stylestring
poseT{ number }
W{ number }

toHand(fx: number, fz: number, depth: number) → void

argtypedescription
fxnumber
fznumber
depthnumber

buildHold(rig: Rig, style: string, adj: { [string]: { number } }?) → void

argtypedescription
rigRig
stylestring
adj{ [string]: { number } }?

body(x: ?, y: ?, z: ?) → void

argtypedescription
x?
y?
z?

toBody(x: ?, y: ?, z: ?) → void

argtypedescription
x?
y?
z?

model(bx: ?, by: ?, bz: ?) → void

argtypedescription
bx?
by?
bz?

refitGbThumbs(A: any, held: any) → boolean

The Game Boy's presses aimed again from where the console and the thumbs really are once the hold is fitted (the face's tilt in the hands and the thumb's own reach differ per body): each press carries the thumb tip from where it rests onto its own control on the face (the d-pad arm, A, B, Start, Select), in the hand's frame. Returns whether it ran.

argtypedescription
Aany
heldany

rigFor(layout: any) → Rig

argtypedescription
layoutany

slotMap(rig: Rig, boneOrder: { string }) → void

argtypedescription
rigRig
boneOrder{ string }

apply(A: Rec, out: { number }, boneOrder: { string }) → void

The layer onto a pose table: the hold pose blended in, then the turns.

argtypedescription
ARec
out{ number }
boneOrder{ string }

add(A: Rec, axes: { number }, slot: number, deg: number) → void

add `deg` degrees about a rig axis table into the slot's rotation vector

argtypedescription
ARec
axes{ number }
slotnumber
degnumber

new(layout: any, base: any, A: Rec) → any

argtypedescription
layoutany
baseany
ARec

update(dt: number) → void

argtypedescription
dtnumber

pending( ) → boolean

evaluate( ) → any

destroy( ) → void

contains(node: any, target: any, depth: number) → boolean

argtypedescription
nodeany
targetany
depthnumber

findBody(avatar: any) → void

the skinned body an avatar's graph drives (else the one seating.pose poses)

argtypedescription
avatarany

walk(e: any, depth: number) → any

argtypedescription
eany
depthnumber

ensureNode(A: Rec) → void

argtypedescription
ARec

boneEntity(avatar: any, name: string) → any

argtypedescription
avatarany
namestring

walk(e: any, depth: number) → any

argtypedescription
eany
depthnumber

thumbTipInHand(A: Rec, side: string) → vector

the thumb tip in its hand's frame (metres), or nil

argtypedescription
ARec
sidestring

thumbScale(A: Rec, style: string, side: string, key: string) → number

the scale a press's solved controls are carried by on this body (1 until calibrated)

argtypedescription
ARec
stylestring
sidestring
keystring

thumbCalibrate(A: Rec, style: string, side: string, key: string?, settled: boolean) → void

One frame of calibration for one thumb: `key` is the press it is making (nil at rest), `settled` whether its controls have reached that press.

argtypedescription
ARec
stylestring
sidestring
keystring?
settledboolean

newRec(avatar: any) → Rec

argtypedescription
avatarany

poseFn(out: { number }, boneOrder: { string }) → void

argtypedescription
out{ number }
boneOrder{ string }

dropRec(id: string) → void

argtypedescription
idstring

consoleStations( ) → void

lookTarget(A: Rec, t: number, held: any, kind: string?, ax: number, ay: number, az: number, fx: number, fz: number, all: { any }) → void

The point the avatar looks at now (world), or nil for straight ahead; the same answer on every peer from shared state and the session clock.

argtypedescription
ARec
tnumber
heldany
kindstring?
axnumber
aynumber
aznumber
fxnumber
fznumber
all{ any }

step(A: Rec, dt: number, t: number, all: { any }) → void

argtypedescription
ARec
dtnumber
tnumber
all{ any }

readCamera( ) → void

isOwn(avatar: any) → boolean

argtypedescription
avatarany

tick(dt: number) → void

argtypedescription
dtnumber

stats( ) → void

What the layer costs: `avatars` in the room, how many were `updated` last frame, `ms` of Luau it took per frame (smoothed), `applies` per frame of the layer onto a pose.

record(avatar: any) → any

The live record for `avatar` (for inspection), or nil.

argtypedescription
avatarany

thumbTip(avatar: any, side: string) → vector

Where `avatar`'s drawn `side` ("left"/"right") thumb tip is in world space (the tip measured on its skinned mesh, placed by the live end joint), or nil.

argtypedescription
avatarany
sidestring

thumbTravel(avatar: any) → any

How far (metres) each solved thumb press carries the thumb tip on `avatar`'s current hold, by the rig's own skeleton: `{ left = { up = m, ... }, right = { a = m, ... } }`.

argtypedescription
avatarany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.