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

skel

The man's skeleton as three.js holds it: local and world bone transforms, clip mixing the way three.js's AnimationMixer blends (bind pose for the weight left over), world-space bone turns, and the pose for the engine's skinning sinks. Used by the animator.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 3d ago
What it does

skel

The man's skeleton as three.js holds it: local and world bone transforms, clip mixing the way three.js's AnimationMixer blends (bind pose for the weight left over), world-space bone turns, and the pose for the engine's skinning sinks. Used by the animator.

Ported from blendi/painted-valley on Patch (MIT).

Interface

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

conforms to

zero/source-extract/v2

strict

subtrees(man: Man) → void

each bone's own subtree (itself first, then its descendants, parents before children)

argtypedescription
manMan

new(man: Man) → Skel

argtypedescription
manMan

allDirty(self: Skel) → void

argtypedescription
selfSkel

markDirty(self: Skel, i: number) → void

argtypedescription
selfSkel
inumber

setObject(self: Skel, pos: vector, qx: number, qy: number, qz: number, qw: number) → void

Places the man (his object: the glTF scene root) in the world.

argtypedescription
selfSkel
posvector
qxnumber
qynumber
qznumber
qwnumber

ensure(self: Skel, i: number) → void

argtypedescription
selfSkel
inumber

worldPos(self: Skel, i: number) → vector

argtypedescription
selfSkel
inumber

worldQuat(self: Skel, i: number) → void

argtypedescription
selfSkel
inumber

parentWorldQuat(self: Skel, i: number) → void

argtypedescription
selfSkel
inumber

localQuat(self: Skel, i: number) → void

argtypedescription
selfSkel
inumber

setLocalQuat(self: Skel, i: number, x: number, y: number, z: number, w: number) → void

argtypedescription
selfSkel
inumber
xnumber
ynumber
znumber
wnumber

setLocalPos(self: Skel, i: number, v: vector) → void

argtypedescription
selfSkel
inumber
vvector

rotateWorldQ(self: Skel, i: number, qx: number, qy: number, qz: number, qw: number) → void

The bone turned by q in world space (the original's rotateWorldQ).

argtypedescription
selfSkel
inumber
qxnumber
qynumber
qznumber
qwnumber

rotateWorld(self: Skel, i: number, axis: vector, angle: number) → void

The bone turned by `angle` about a world axis (the original's rotateWorld).

argtypedescription
selfSkel
inumber
axisvector
anglenumber

parentLocal(self: Skel, i: number, pw: vector) → vector

A world point in the frame of bone i's parent (Object3D.worldToLocal on the parent).

argtypedescription
selfSkel
inumber
pwvector

toObject(self: Skel, v: vector) → vector

A world point in the man's own frame (applyMatrix4 of his inverse world matrix).

argtypedescription
selfSkel
vvector

objectDir(self: Skel, v: vector) → vector

A direction in the man's frame turned into the world (e.g. (0, 0, 1) is his forward).

argtypedescription
selfSkel
vvector

sampleQ(tr: Track, t: number) → void

argtypedescription
trTrack
tnumber

sampleV(tr: Track, t: number) → vector

argtypedescription
trTrack
tnumber

byOrder(a: Sample, b: Sample) → boolean

argtypedescription
aSample
bSample

mix(self: Skel, samples: { Sample }) → void

Poses the skeleton from weighted clip samples as three.js's mixer does (mixer.update after setting each action's weight and time): per property, the actions with a track for it blended in their order, the weight they leave over taken from the bind pose. In-place samples leave root's tracks out.

argtypedescription
selfSkel
samples{ Sample }

toBind(self: Skel) → void

argtypedescription
selfSkel

poseValues(self: Skel) → void

The local pose as the engine's pose sink takes it: stride 10 (translation, rotation x y z w, scale).

argtypedescription
selfSkel
⌬ Types
Sample = { clip: Clip, w: number, time: number, inPlace: boolean, slot: number }Skel = typeof(setmetatable({} :: SkelData, Skel))
⌬ Metadata
descriptionThe man's skeleton as three.js holds it

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

Showing up to 3 levels deep. Open a part to see what it holds further down.

11+items
▣
module · born here
❒asset
# man Patch's starter man (port of figure/man.js): reads the rig of figure/starter_man.bundle and the tracks of every clip in figure/starter-man-clips_anims once per engine, keeps root travel as `motion`, and `rootAt` samples a clip's root. Used by the animator and the player. Ported from blendi/painted-valley on Patch (MIT).
▲ 0↑ born
▣
module · born here
❒asset
# q Quaternion and vector helpers on plain numbers and Luau vectors, with three.js's formulas (multiply, rotate, slerp, slerpFlat, setFromUnitVectors). Used by every module of the wanderer's figure. Ported from blendi/painted-valley on Patch (MIT).
▲ 0↑ born

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.