# @ferret/humans: API (continued)

### LoadedFigure

*interface* · `packages/humans/src/babylon.ts:31`

```ts
interface LoadedFigure
```

- `spec: HumanSpec`
- `root: BABYLON.TransformNode`
- `meshes: BABYLON.AbstractMesh[]`
- `skeleton: BABYLON.Skeleton | null`
- `groups: Record<string, BABYLON.AnimationGroup>` — animation groups by graph clip name: idle, walk, run, jump, fall
- `loops: Record<string, boolean>`
- `graph: GraphDef`
- `walkSpeed: number` — metres per second the body walks and runs at (derived from its legs)
- `runSpeed: number`
- `stature: number`
- `morphs: { numTargets: number; getTarget(i: number): { name: string; influence: number } } | null` — morph targets by ARKit name on the head mesh, or null when the figure has none
- `setExpression(weights: Record<string, number>): void` — set an expression: ARKit weights
- `stepChains(dt: number): void` — advance the tail and ear chains (call from onUpdate with dt seconds)
- `dispose(): void`

### LodPack

*interface* · `packages/humans/src/data.ts:102`

```ts
interface LodPack
```

- `tiers: string[]`
- `part(tier: string, part: string): LodPart | undefined`
- `triangles(tier: string): number`

### LodPart

*interface* · `packages/humans/src/data.ts:101`

```ts
interface LodPart
```

One part of one LOD tier: the base vertices it keeps and its triangles over them.

- `keep: Uint32Array`
- `indices: Uint16Array`
- `triangles: number`

### MakeupLayer

*interface* · `packages/humans/src/spec.ts:17`

```ts
interface MakeupLayer
```

- `kind: 'lips' | 'eyes' | 'cheeks' | 'foundation' | 'brows' | 'liner'`
- `colour: Rgb`
- `strength: number`

### Mark

*interface* · `packages/humans/src/spec.ts:7`

```ts
interface Mark
```

A mark on the face or body: scar, mole, ... `at` names a region ('brow.left', 'cheek.right').

- `kind: 'scar' | 'mole' | 'freckles' | 'pockmark' | 'burn' | 'tattoo' | 'missingTooth' | 'brokenNose'`
- `at?: string`
- `size?: number`
- `strength?: number`
- `seed?: number`
- `decal?: string` — a tattoo or decal image (library id)

### Mesh

*interface* · `packages/humans/src/primitives.ts:10`

```ts
interface Mesh
```

- `p: number[]`
- `i: number[]`

### MicroOptions

*interface* · `packages/humans/src/compose.ts:194`

```ts
interface MicroOptions
```

- `seed: number`
- `size?: number` — pixels per side of the tile (the tile repeats seamlessly)
- `age: number` — years: older skin has deeper lines and wider pores
- `coarseness?: number` — 0..1 how pronounced the relief is (oily/coarse skin high, fine skin low)

### MotionJoint

*interface* · `packages/humans/src/motion.ts:40`

```ts
interface MotionJoint
```

- `name: string`
- `parent: number`
- `t: [number, number, number]`
- `q: Q`
- `rest: [number, number, number]`

### MotionPack

*interface* · `packages/humans/src/motion.ts:42`

```ts
interface MotionPack
```

- `fps: number`
- `skeleton: MotionJoint[]`
- `clips: Map<string, GaitClip>`

### OutfitBuilt

*interface* · `packages/humans/src/outfit.ts:31`

```ts
interface OutfitBuilt
```

- `garments: (GarmentResult & { piece: OutfitPiece; tile: FabricTile; trims: TrimResult[] })[]`
- `headwear: (HeadwearResult & { piece: OutfitPiece; tile: FabricTile })[]` — helmets, hats, hoods: each with the hair cut (apply with `maskHair`)
- `bodyIndices: Uint16Array | Uint32Array`

### OutfitDescribed

*interface* · `packages/humans/src/outfit-words.ts:9`

```ts
interface OutfitDescribed
```

Words to clothes, Russian by stem and English by whole word. Garment words make pieces (a bundle word such as "battledress" makes several);
colour, fabric, fit, length, pattern and condition words before a garment (or right after it) belong to it; words before a bundle belong to all its pieces.
Period and uniform bundles are data rows: a game or an agent can add its own with `addOutfitBundle`.

- `pieces: OutfitPiece[]`
- `matched: string[]`
- `unmatched: string[]`

### OutfitSpec

*interface* · `packages/humans/src/spec.ts:105`

```ts
interface OutfitSpec
```

- `words?: string`
- `pieces: OutfitPiece[]`

### PanelState

*interface* · `packages/humans/src/loose.ts:121`

```ts
interface PanelState
```

- `points: Float32Array`
- `prev: Float32Array`

### PartMaterial

*interface* · `packages/humans/src/build.ts:9`

```ts
interface PartMaterial
```

What a part is made of when it is not skin (kits, props, robots): the renderer and the exporters read it.

- `colour: [number, number, number]`
- `metallic?: number`
- `roughness?: number`
- `emissive?: [number, number, number]` — linear emissive colour (robot lights, a sun disc)
- `fur?: { layer: number; layers: number; length: number }` — shell fur: this part is layer `layer` of `layers`, `length` metres out; the strand alpha is cut at layer/layers
- `card?: 'tuft' | 'feather'` — a card (tuft, feather): drawn alpha-tested with its own tile
- `kind?: 'fur' | 'scales' | 'cloth' | 'metal' | 'bone' | 'skin' | 'glass' | 'feather'`

### PictureRead

*interface* · `packages/humans/src/picture.ts:85`

```ts
interface PictureRead
```

What the vision model reads for one garment: which template, its parameters, fabric, condition and where it is in the picture.

- `template: string`
- `params?: Record<string, unknown>`
- `fabric?: string`
- `condition?: Record<string, number>`
- `region: Region`
- `white?: Region`

### Population

*interface* · `packages/humans/src/random.ts:177`

```ts
interface Population
```

- `specs: HumanSpec[]`
- `relaxed: number[]` — indices of people who could not be kept at least `minFaceDistance` from all earlier ones in the allowed draws (the best draw is kept)

### Pose

*interface* · `packages/humans/src/motion.ts:82`

```ts
interface Pose
```

A pose: local rotations of every joint and the local translation of the pelvis (the only joint that moves relative to its parent in a gait).

- `q: Float32Array`
- `pelvis: [number, number, number]`

### Profile

*interface* · `packages/humans/src/random.ts:64`

```ts
interface Profile
```

A population profile: the distributions a game gives to make people. The engine ships NO statistics: every number comes
from the profile, which cites its source in `source`. `UNIFORM_PROFILE` below is a neutral spread for tests and first drafts, not data
about any real population.

- `name: string`
- `source: string` — where the numbers come from (a named public dataset, a historical source, or "none: test spread")
- `kit?: string`
- `sex: Dist` — 0 female .. 1 male
- `age: Dist` — years
- `height: Dist | { female: Dist; male: Dist }` — metres; by sex when both are given (mixed by the sampled sex)
- `somatotype?: [Dist, Dist, Dist]` — Heath-Carter ratings; unset = no somatotype
- `weight?: Dist`
- `muscle?: Dist`
- `frame?: Dist`
- `fatPattern?: Dist`
- `proportionSpread?: number` — sd of each proportion axis
- `faceSpread: number` — sd of each face axis (0 = the base face for everyone)
- `faceAxes?: Record<string, Dist>` — axes drawn from their own distribution instead of faceSpread
- `faceBlends?: string[]` — names of base-face blends the profile may use; one to two are mixed
- `skin: { melanin: Dist; redness: Dist; freckles?: Dist; moles?: Dist }`
- `irises: { v: Rgb; w?: number }[]`
- `hair: { styles: { v: string; w?: number }[]; melanin: Dist; redness: Dist; greying: Dist }`
- `brows?: { v: string; w?: number }[]`
- `beard?: { chance: number; styles: { v: string; w?: number }[] }`
- `outfit?: (rng: Rng, spec: HumanSpec) => OutfitPiece[]` — the game dresses the person: called after the body and face are drawn
- `constraints?: ((spec: HumanSpec) => string | null)[]` — hard rules: return null when satisfied, else a reason; the person is drawn again until all are
- `minFaceDistance?: number` — no two faces of a population closer than this (faceDistance)
- `motionSpread?: number` — motion style spread (sd per axis)

### PropPiece

*interface* · `packages/humans/src/props.ts:21`

```ts
interface PropPiece
```

- `mesh: Mesh`
- `mat: PartMaterial`

### Region

*interface* · `packages/humans/src/picture.ts:10`

```ts
interface Region
```

- `x: number`
- `y: number`
- `w: number`
- `h: number`

### ResolvedBody

*interface* · `packages/humans/src/resolve.ts:10`

```ts
interface ResolvedBody
```

The low-level body numbers a spec resolves to. Precedence: an explicit low-level value wins, then `build.mass`
(with height, as BMI) for fat, then the somatotype. The coefficients below are PROVISIONAL: P2 refits them on the MakeHuman targets and
published somatotype data; the interface and the precedence stay.

- `sex: number`
- `age: number`
- `height: number`
- `fat: number`
- `muscle: number`
- `frame: number`
- `fatPattern: number`
- `proportions: Record<typeof PROPORTION_AXES[number], number>` — final proportion axes after frame and linearity are added, each -1..1
- `bmi?: number` — kg / m^2 when mass is given
- `source: { fat: 'weight' | 'mass' | 'somatotype' | 'default'; muscle: 'muscle' | 'somatotype' | 'default' }` — where fat and muscle came from

### Rig

*interface* · `packages/humans/src/motion.ts:53`

```ts
interface Rig
```

- `n: number`
- `names: string[]`
- `index: Map<string, number>`
- `parent: Int16Array`
- `restQ: Float32Array` — local rest rotations (base figure) and the rest world rotations
- `restWorldQ: Float32Array`
- `tLocal: Float32Array` — this body's local rest translations (from its own bone lengths) and its rest world positions
- `restWorld: Float32Array`
- `legScale: number` — leg length of this body / of the base figure: scales the clip's pelvis translation

### RobotKit

*interface* · `packages/humans/src/kit-core.ts:105`

```ts
interface RobotKit
```

- `shell: Rgb` — panel colour, joint colour, light colour
- `joint?: Rgb`
- `light?: Rgb`
- `style?: 'android' | 'full'` — 'android': a human face and hands on the machine body; 'full': a machine head
- `stand?: number` — how many millimetres the panels stand off the body
- `segments?: boolean`

### Session

*interface* · `packages/humans/src/commands.ts:94`

```ts
interface Session
```

- `specs: Map<string, HumanSpec>`
- `get(id: string): HumanSpec`
- `figure(id: string, tier?: string): Figure`

### ShapePack

*interface* · `packages/humans/src/data.ts:63`

```ts
interface ShapePack
```

- `axes: Map<string, { kind: string; negMode: string; pos: FieldRef[]; neg: FieldRef[] }>`
- `joints: string[]`
- `jointField(axis: string, side: Side): Float32Array | undefined` — joint displacements (metres) of an axis side: 3 floats per joint, or undefined when the axis does not move joints
- `statureBase: number` — stature (metres, head top to sole) of the base figure and the change of one axis side at weight 1
- `statureDelta(axis: string, side: Side): number`
- `partVertices(part: string): number`

### SkinPixels

*interface* · `packages/humans/src/materials.ts:18`

```ts
interface SkinPixels
```

- `rgba: Uint8ClampedArray`
- `width: number`
- `height: number`

### SkinSpec

*interface* · `packages/humans/src/spec.ts:79`

```ts
interface SkinSpec
```

- `melanin: number`
- `redness: number`
- `freckles: number`
- `moles: number`
- `ageing: number` — 0..1 extra weathering/ageing beyond what the age gives
- `makeup?: MakeupLayer[]`

### SkinTone

*interface* · `packages/humans/src/skin.ts:36`

```ts
interface SkinTone
```

- `linear: Rgb` — linear sRGB albedo of average skin, 0..1
- `lab: [number, number, number]`
- `ita: number` — Individual Typology Angle, degrees
- `scatter: Rgb` — colour of light that scatters under the skin (linear), redder than the albedo
- `roughness: number`

### SlideReport

*interface* · `packages/humans/src/motion.ts:407`

```ts
interface SlideReport
```

- `matched: number` — m/s RMS of the stance feet's horizontal motion relative to the ground, after rate matching only
- `planted: number` — the same after foot planting
- `matchedRatio: number` — as a fraction of the travel speed
- `plantedRatio: number`
- `rate: number`
- `speed: number`

### Socket

*interface* · `packages/humans/src/kit-core.ts:13`

```ts
interface Socket
```

A named place on the body where props, crowns and held things go: a joint, a point and a forward direction in world rest space.

- `joint: number`
- `at: V3`
- `dir: V3`
- `up: V3`

### TailKit

*interface* · `packages/humans/src/kit-core.ts:89`

```ts
interface TailKit
```

- `kind: 'bushy' | 'thin' | 'whip' | 'puff' | 'lizard' | 'horse' | 'rat'`
- `length: number`
- `thickness?: number`
- `segments?: number`
- `colour?: Rgb`
- `colour2?: Rgb`
- `physics?: boolean`

### TintMap

*interface* · `packages/humans/src/compose.ts:11`

```ts
interface TintMap extends Img
```

The tint map of a skin sheet (tools/humans/p4-ratio.mjs): pixel / plain skin, stored as value / 2.

- `scale: number`

### TongueShape

*interface* · `packages/humans/src/tongue.ts:34`

```ts
interface TongueShape
```

- `positions: Float32Array`
- `indices: Uint16Array`
- `uv: Float32Array`
- `along: Float32Array`

### Trim

*interface* · `packages/humans/src/spec.ts:24`

```ts
interface Trim
```

Insignia, buttons, piping ... placed by name on a garment (8a.2).

- `kind: string`
- `at: string`
- `colour?: Rgb`
- `text?: string`
- `size?: number`

### TrimResult

*interface* · `packages/humans/src/trim.ts:11`

```ts
interface TrimResult
```

Trims: buttons, patches (pockets, badges, stripes, epaulettes), belts, placed by name on a garment. Every trim is geometry cut from or built on
the garment surface, so it follows the body like the garment. Kinds: buttons, buttons-double, pockets, epaulettes, belt, stripe, badge, piping.

- `trim: Trim`
- `part: BuiltPart`
- `colour: Rgb`

### ValidateOptions

*interface* · `packages/humans/src/validate.ts:8`

```ts
interface ValidateOptions
```

- `itemInfo?: (item: string) => { adultOnly?: boolean; kits?: string[] } | undefined` — what the library knows about an item (a garment, a hair style ...); unknown items are reported as warnings
- `knownKits?: readonly string[]` — the kit ids that exist; 'human' always does
- `stylised?: boolean` — stylised kits may leave the realistic limits of the body; default: true only for kits other than 'human'

### World

*interface* · `packages/humans/src/motion.ts:83`

```ts
interface World
```

- `pos: Float32Array`
- `q: Float32Array`

## Types

### AxisWeights

*type* · `packages/humans/src/weights.ts:12`

```ts
type AxisWeights = Map<string, number>
```

Axis weights of a person: every shape axis of the pack with the signed number it is applied at (sign picks the pos or neg side, |w| the amount).
The sex axis is stored as female minus male and is applied at 1 - sex. Age is blended from the keys baby (1 y), child (11 y), young (25 y, the
base), old (90 y). `height` is solved so that the stature comes out at the requested metres (the pack records each axis' change of stature).

### DrapeKind

*type* · `packages/humans/src/loose.ts:12`

```ts
type DrapeKind = 'cloak' | 'shawl' | 'wrap'
```

Loose cloth: (1) `drapeCloth` lets a cloth rectangle fall on the built body at build time (position-based dynamics against the
skin, deterministic: no random numbers, fixed step and iteration counts) and returns it as a garment; (2) `swingPanel` is the runtime follower of a hanging panel
(skirt, coat tails, cloak, drape): every ring below the top lags behind the posed goal with a damped spring and keeps its length, so the hem swings instead of
stretching between the knees. Both work on grids laid out as (rows+1) rings of (seg+1) vertices, ring 0 at the top.

### EmotionName

*type* · `packages/humans/src/expressions.ts:37`

```ts
type EmotionName = keyof typeof EMOTIONS
```

### ExpressionName

*type* · `packages/humans/src/expressions.ts:17`

```ts
type ExpressionName = typeof ARKIT[number]
```

### ExpressionWeights

*type* · `packages/humans/src/expressions.ts:18`

```ts
type ExpressionWeights = Partial<Record<ExpressionName, number>>
```

### GarmentLayer

*type* · `packages/humans/src/garment.ts:17`

```ts
type GarmentLayer = 'underwear' | 'shirt' | 'waistcoat' | 'jacket' | 'coat' | 'trousers' | 'footwear' | 'gloves' | 'armour'
```

### HeadwearTemplate

*type* · `packages/humans/src/headwear.ts:10`

```ts
type HeadwearTemplate = 'helmet' | 'cap' | 'peaked-cap' | 'hat' | 'witch-hat' | 'beret' | 'hood' | 'scarf' | 'crown'
```

Headwear and rigid head pieces: lathes around the head axis whose radius follows the built head at every height and angle, so a hat or a
helmet fits every head shape. Skinned to the head joint only. Each piece names how it treats hair (`hairMask`): the hair above the cut is hidden, the hair under
a brim stays.

### Layer

*type* · `packages/humans/src/spec.ts:30`

```ts
type Layer = typeof LAYERS[number]
```

### MaterialTier

*type* · `packages/humans/src/materials.ts:16`

```ts
type MaterialTier = 'hero' | 'standard' | 'crowd'
```

Babylon materials of a person at three shader tiers. The pixels come from `compose.ts` (pure arrays); this file only turns them
into textures and sets the parameters, so it is the only place of the package that touches `BABYLON`.

 - hero:     PBR, albedo + normal + roughness maps, translucency (thin-skin scattering) tinted by the person's scatter colour, clear coat on the eyes
 - standard: PBR, albedo + normal, no translucency
 - crowd:    one flat-lit albedo, no maps (the vertex colour carries the shading); the cheapest thing that still reads as skin

Skin is rough and barely specular: roughness >= 0.5 and a low reflectivity (the first sheets were glossy like plastic).

### MotionAxis

*type* · `packages/humans/src/axes.ts:45`

```ts
type MotionAxis = typeof MOTION_AXES[number]
```

### MotionStyle

*type* · `packages/humans/src/spec.ts:99`

```ts
type MotionStyle = Partial<Record<typeof MOTION_AXES[number], number>> & { limp?: { side: -1 | 1; severity: number }; /** kg carried */ load?: number; }
```

### MovementValues

*type* · `packages/humans/src/motion.ts:150`

```ts
type MovementValues = Pick<DerivedMotion, 'radius' | 'height' | 'crouchHeight' | 'eyeHeight' | 'mass' | 'walkSpeed' | 'runSpeed' | 'crouchSpeed' | 'acceleration' | 'braking' | 'maxStepHeight' | 'jumpVelocity'>
```

Parameter names of `@ferret/character`'s CharacterParams that the derived values fill (the type is duck-compatible, so the package need not depend on character).

### OutfitPiece

*type* · `packages/humans/src/spec.ts:33`

```ts
type OutfitPiece = PieceSource & { layer?: Layer; fabric: string; colour?: Rgb; pattern?: Pattern; trims?: Trim[]; condition?: Condition; }
```

### Pattern

*type* · `packages/humans/src/spec.ts:19`

```ts
type Pattern = | { kind: 'solid' } | { kind: 'stripes' | 'check' | 'tartan' | 'print' | 'camouflage'; scale: number; colour2?: Rgb; image?: string }
```

### PieceSource

*type* · `packages/humans/src/spec.ts:32`

```ts
type PieceSource = { template: string; params: Record<string, unknown> } | { item: string; variant?: string }
```

### PropBuilder

*type* · `packages/humans/src/props.ts:23`

```ts
type PropBuilder = () => PropPiece[]
```

A prop in its own frame: origin at the grip, +y along the item (the end that points away from the arm), +x across, +z toward the palm side; metres at scale 1 (an adult).

### ProportionAxis

*type* · `packages/humans/src/axes.ts:41`

```ts
type ProportionAxis = typeof PROPORTION_AXES[number]
```

### Q

*type* · `packages/humans/src/motion.ts:15`

```ts
type Q = [number, number, number, number]
```

Motion of a built person: the Customizer skeleton as a rig that does FK on the body's own bone lengths, the gait clips of `cc-clips` sampled as data,
a style layer on them (posture, arm swing, hip sway, bounce, tempo, energy, confidence, heaviness, limp, load), cadence matching so feet do not slide on any leg
length, foot planting by two-bone IK, skinning to see it, values for CharacterMovement and capsules for combat read from the real bones.
Quaternions are x, y, z, w (glTF); the body faces +z and its left side is +x.

### Rgb

*type* · `packages/humans/src/spec.ts:4`

```ts
type Rgb = [number, number, number]
```

### Side

*type* · `packages/humans/src/data.ts:58`

```ts
type Side = 'pos' | 'neg'
```

### StyleAxis

*type* · `packages/humans/src/kit-core.ts:48`

```ts
type StyleAxis = typeof STYLE_AXES[number]
```

### Template

*type* · `packages/humans/src/garment.ts:10`

```ts
type Template = | 'tshirt' | 'shirt' | 'sweater' | 'jacket' | 'coat' | 'waistcoat' | 'tanktop' | 'dress' | 'trousers' | 'jeans' | 'shorts' | 'breeches' | 'skirt' | 'kilt' | 'shoes' | 'boots' | 'sandals' | 'gloves' /** rigid armour (8a.3): plates that follow one bone each and do not bend */ | 'breastplate' | 'backplate' | 'pauldrons' | 'bracers' | 'greaves' | 'cuisses' | 'gorget'
```

Garments generated on the built body. A template picks the body0 vertices it covers by region (torso, arms, legs, feet, with cuts given as
fractions of the limb or of the torso), lifts them along the body normal by `ease` plus a layer offset, and keeps the body UVs and skin weights, so the garment
follows every shape axis, the constitution and every animation exactly as the body does. Skirts and coat tails are lathes around the pelvis axis (own UVs).

### V3

*type* · `packages/humans/src/primitives.ts:9`

```ts
type V3 = [number, number, number]
```

Procedural geometry for kits, props and costume pieces: small meshes in world rest space (metres, +y up, +z forward, left +x) that
are bound to a joint (rigid) or to a chain of joints (tails, ears, tentacles) and become a `BuiltPart` like any other part.

## Constants

### AGE_KEYS

*const* · `packages/humans/src/weights.ts:14`

```ts
const AGE_KEYS: { readonly baby: 1; readonly child: 11; readonly young: 25; readonly old: 90; }
```

### ARKIT

*const* · `packages/humans/src/expressions.ts:12`

```ts
const ARKIT: readonly ["browDownLeft", "browDownRight", "browInnerUp", "browOuterUpLeft", "browOuterUpRight", "cheekPuff", "cheekSquintLeft", "cheekSquintRight", "eyeBlinkLeft", "eyeBlinkRight", "eyeLookDownLeft", "eyeLookDownRight", "eyeLookInLeft", "eyeLookInRight", "eyeLookOutLeft", "eyeLookOutRight", "eyeLookUpLeft", "eyeLookUpRight", "eyeSquintLeft", "eyeSquintRight", "eyeWideLeft", "eyeWideRight", "jawFo …
```

Live expressions: the 52 ARKit shape names, emotion presets as weight sets, a seeded blink and saccade rhythm, and gaze.
The shapes are the Customizer head's morph targets (pack humans-expr), additive deltas on the head parts. They are RE-BASED on the person: a delta is
scaled per axis by how much this head is wider, taller or deeper than the base head, so a broad face smiles broad.

### ATTACH_CELL

*const* · `packages/humans/src/hair.ts:19`

```ts
const ATTACH_CELL: Record<string, number>
```

Vertex-cluster size (metres) per tier: the detail of cards and curls goes first; at the crowd tiers hair becomes a solid shell.

### CURRENT_VERSION

*const* · `packages/humans/src/migrate.ts:9`

```ts
const CURRENT_VERSION: 1
```

Reads a stored spec of any version into the current one. A spec saved today stays readable: each version change adds a function to
MIGRATIONS (from version n to n+1). Missing optional parts are filled with the defaults of defaultHuman, so a partial spec (written by
hand or by an agent) is accepted.

### EMOTIONS

*const* · `packages/humans/src/expressions.ts:24`

```ts
const EMOTIONS: { readonly neutral: {}; readonly smile: Partial<Record<"browDownLeft" | "browDownRight" | "browInnerUp" | "browOuterUpLeft" | "browOuterUpRight" | "cheekPuff" | "cheekSquintLeft" | "cheekSquintRight" | "eyeBlinkLeft" | "eyeBlinkRight" | "eyeLookDownLeft" | "eyeLookDownRight" | "eyeLookInLeft" | "eyeLookInRight" | "eyeLookOutLeft" | "eyeLookOutRight" | "eyeLookUpLeft" | "eyeLookUpRight" | "eyeSquin …
```

Emotion presets at full intensity (scale them with `emotion(name, k)`).

### FABRICS

*const* · `packages/humans/src/fabric.ts:26`

```ts
const FABRICS: Record<string, FabricInfo>
```

### FACE_AXES

*const* · `packages/humans/src/axes.ts:19`

```ts
const FACE_AXES: readonly AxisDef[]
```

Face axes, the plan Append only.

### FACE_AXES_V1

*const* · `packages/humans/src/axes.ts:35`

```ts
const FACE_AXES_V1: 78
```

The version-1 table has this many axes; later versions append.

### FACE_AXIS_INDEX

*const* · `packages/humans/src/axes.ts:37`

```ts
const FACE_AXIS_INDEX: ReadonlyMap<string, number>
```

### LANDMARKS

*const* · `packages/humans/src/fit.ts:20`

```ts
const LANDMARKS: readonly LandmarkDef[]
```

### LATHE_ROWS

*const* · `packages/humans/src/garment.ts:124`

```ts
const LATHE_ROWS: 14
```

### LATHE_SEG

*const* · `packages/humans/src/garment.ts:124`

```ts
const LATHE_SEG: 40
```

### LAYER_LIFT

*const* · `packages/humans/src/garment.ts:19`

```ts
const LAYER_LIFT: Record<GarmentLayer, number>
```

metres of lift of each layer over the skin, so layers never z-fight and the outer one sits over the inner

### LAYERS

*const* · `packages/humans/src/spec.ts:29`

```ts
const LAYERS: readonly ["skin", "underwear", "shirt", "waistcoat", "jacket", "coat", "outer", "trousers", "skirt", "socks", "footwear", "headwear", "belt", "gear"]
```

### LIMITS

*const* · `packages/humans/src/validate.ts:18`

```ts
const LIMITS: { readonly heightMin: 0.4; readonly heightMax: 3; readonly ageMin: 0; readonly ageMax: 120; readonly bmiWarnLow: 12; readonly bmiWarnHigh: 60; readonly childAge: 16; }
```

Realistic limits (engineering limits of the shape space, not statistics).

### MIGRATIONS

*const* · `packages/humans/src/migrate.ts:12`

```ts
const MIGRATIONS: Record<number, (s: any) => any>
```

MIGRATIONS[n] turns a version-n object into version n+1. Empty while the current version is 1.

### MOTION_AXES

*const* · `packages/humans/src/axes.ts:44`

```ts
const MOTION_AXES: readonly ["posture", "armSwing", "strideWidth", "bounce", "hipSway", "shoulderRoll", "tempo", "energy", "confidence", "heaviness"]
```

Motion style axes (signed -1..1, 0 = the neutral gait). Append only.

### PART_IDS

*const* · `packages/humans/src/build.ts:100`

```ts
const PART_IDS: readonly ["body0", "head0", "head1", "head2", "head3", "head4", "head5"]
```

### PROOFS

*const* · `packages/humans/src/proofs.ts:17`

```ts
const PROOFS: Record<string, () => HumanSpec>
```

### PROPORTION_AXES

*const* · `packages/humans/src/axes.ts:40`

```ts
const PROPORTION_AXES: readonly ["legs", "arms", "torso", "shoulders", "hips", "waist", "chest", "neck", "head", "hands", "feet"]
```

Body proportion axes (signed -1..1, 0 = the base figure). Append only.

### PROPS

*const* · `packages/humans/src/props.ts:29`

```ts
const PROPS: Map<string, PropBuilder>
```

The held items. Add yours with `registerProp`.

### RECIPES

*const* · `packages/humans/src/kits.ts:21`

```ts
const RECIPES: Record<string, KitOptions>
```

Species and characters as option sets. `recipe(id)` throws for an unknown one; `recipeIds()` lists them.

### STYLE_AXES

*const* · `packages/humans/src/kit-core.ts:47`

```ts
const STYLE_AXES: readonly ["headSize", "neckLength", "torsoLength", "legLength", "armLength", "shoulderWidth", "hipWidth", "girth", "legGirth", "armGirth", "handSize", "footSize"]
```

Stylised proportion axes: numbers beyond the realistic range, 0 = the base figure, 1 = a strongly exaggerated but still human figure. Append only.

### STYLE_GROUPS

*const* · `packages/humans/src/motion.ts:240`

```ts
const STYLE_GROUPS: { readonly arms: readonly ["clavicle", "upperarm", "lowerarm", "hand"]; readonly legs: readonly ["thigh", "calf", "foot", "ball"]; readonly spineUp: readonly ["spine_03", "spine_04", "spine_05", "clavicle_l", "clavicle_r"]; readonly pelvis: readonly ["pelvis", "spine_01", "spine_02"]; }
```

### TONGUE_RINGS

*const* · `packages/humans/src/tongue.ts:31`

```ts
const TONGUE_RINGS: 16
```

### TONGUE_SIDES

*const* · `packages/humans/src/tongue.ts:32`

```ts
const TONGUE_SIDES: 12
```

### UNIFORM_PROFILE

*const* · `packages/humans/src/random.ts:104`

```ts
const UNIFORM_PROFILE: Profile
```

### VOCABULARY

*const* · `packages/humans/src/vocab.ts:56`

```ts
const VOCABULARY: readonly Descriptor[]
```

### WORN

*const* · `packages/humans/src/props.ts:114`

```ts
const WORN: Map<string, Worn>
```

