Builtin Library
README.md
avatarTemplates.body
The geometry and skeleton of a template body, built from its proportions. Every body is the same mesh topology laid over a skeleton of the VRM 1.0 humanoid bones, so any two proportions give meshes with the same vertex order, triangles and UVs. The body stands in a T-pose with its palms down, facing +Z, +X its left, the ground at y = 0, in metres, and every bone's rest rotation is the identity.
| Member | What it is |
|---|---|
bones | the bones in skin-joint order, { name, parent }: the VRM 1.0 humanoid bones and headTop, a leaf at the crown |
boneIndex(name) | a bone's index in bones |
tiles | the UV tile of each part of the body (torso, head, leftArm, ..., face), the layout every template body shares |
shapes | the face's morph targets in the order a body's weights address them: the VRM 1.0 expression presets |
layout(proportions) | where every joint stands at rest, with the head's ellipsoid and the heights the body is built around |
skin(layout) | the skin every template mesh is bound with: joints, parents and inverse binds |
rig(layout) | the skeleton as a rig.json document |
build(proportions) | the five meshes (body, and the face's eyes, irises, brows, mouth, which carry the expression presets) and the rig |
avatarTemplates.bundle writes what build answers into a world as the template's body
bundle.