跳转到内容

AnimatorAvatar

此内容尚不支持你的语言。

Defined in: sdk/src/animation/animatorAvatar.ts:31

A rig’s own spelling for each joint a clip may name, and how it stands at rest.

joints: Record<string, string>

Defined in: sdk/src/animation/animatorAvatar.ts:37

The name a clip uses → the childPath this rig reaches that joint by. A name with no entry resolves as itself, so a clip authored against this rig keeps working and an avatar can translate only what differs.


optional rest?: Record<string, Quat>

Defined in: sdk/src/animation/animatorAvatar.ts:44

Each joint’s rotation in the BIND pose, by the name joints uses. What a clip states is where a joint is, and what it MEANS is the offset from where that joint rests — two rigs bound differently need this to read one clip the same way. Absent for a rig nothing is retargeted onto.


optional restPosition?: Record<string, Vec3>

Defined in: sdk/src/animation/animatorAvatar.ts:54

Each joint’s local position at rest: a clip that moves a joint (the hips) moves it FROM here, so another rig needs its own.


optional scale?: number

Defined in: sdk/src/animation/animatorAvatar.ts:61

Root to the joint furthest from it, at rest — the ONE measure every avatar uses, since two measured differently give a ratio that means nothing. What it buys is displacement: a step authored on a smaller rig slides on a taller one unless it travels further.


optional space?: Record<string, Quat>

Defined in: sdk/src/animation/animatorAvatar.ts:51

Each joint’s PARENT at rest, as a rotation in the rig’s own space — what a joint’s local values are expressed in. Two rigs whose skeletons stand on different axes (one Z-up under a turned root, one Y-up) read one clip the same way only through this. Absent is the identity.