qmul(a: { number }, b: { number }) → void
| arg | type | description |
|---|
| a | { number } | |
| b | { number } | |
qconj(q: { number }) → void
| arg | type | description |
|---|
| q | { number } | |
qnorm(q: { number }) → void
| arg | type | description |
|---|
| q | { number } | |
qrot(q: { number }, v: { number }) → void
| arg | type | description |
|---|
| q | { number } | |
| v | { number } | |
qeuler(e: { number }?) → void
Euler degrees {x, y, z}, composed Y * X * Z.
| arg | type | description |
|---|
| e | { number }? | |
ax(x: number, y: number, z: number, deg: number) → void
| arg | type | description |
|---|
| x | number | |
| y | number | |
| z | number | |
| deg | number | |
prim(parent: any, name: string, mesh: string, mat: string, pos: { number }, size: { number }, rot: { number }?) → any
Spawn one primitive part under `parent` (local space), tagged as outfit.
| arg | type | description |
|---|
| parent | any | |
| name | string | |
| mesh | string | |
| mat | string | |
| pos | { number } | |
| size | { number } | |
| rot | { number }? | |
bones(root: any) → void
Map bone name -> bone entity for the rig under `root`.
| arg | type | description |
|---|
| root | any | |
skinned(root: any) → void
Every SkinnedModel entity under `root`.
| arg | type | description |
|---|
| root | any | |
clear(root: any) → void
Remove the outfit parts previously attached under `root`.
| arg | type | description |
|---|
| root | any | |
skin(root: any, mat: string) → void
Recolour every skinned body under `root` with a characters material.
| arg | type | description |
|---|
| root | any | |
| mat | string | |
attach(root: any, parts: { any }) → number
Attach rest-space parts to the bones of the rig under `root`. Returns count.
| arg | type | description |
|---|
| root | any | |
| parts | { any } | |
mirror(parts: { any }) → void
Mirror a list of parts across X (character left <-> right), renaming bones.
| arg | type | description |
|---|
| parts | { any } | |
join(...: { any }) → void
Concatenate part lists.
| arg | type | description |
|---|
| ... | { any } | |
shorts(mat: string, trim: string?, len: number?, wide: number?) → void
Swim trunks / shorts: waist band, two leg tubes, hems. `len` 0..1 longer legs.
| arg | type | description |
|---|
| mat | string | |
| trim | string? | |
| len | number? | |
| wide | number? | |
torso(mat: string, top: number?, fat: number?) → void
Torso garment (tank / shirt / swimsuit body) on the spine.
| arg | type | description |
|---|
| mat | string | |
| top | number? | |
| fat | number? | |
sleeves(mat: string, long: boolean?) → void
Sleeves along both upper arms (and forearms when `long`).
| arg | type | description |
|---|
| mat | string | |
| long | boolean? | |
trousers(mat: string) → void
Long trousers on thighs and shins.
| arg | type | description |
|---|
| mat | string | |
shoes(mat: string, strap: string?) → void
Shoes / flip-flops on the ankles.
| arg | type | description |
|---|
| mat | string | |
| strap | string? | |
hair(mat: string, big: number?) → void
Hair cap on the head.
| arg | type | description |
|---|
| mat | string | |
| big | number? | |
aviators(lens: string, frame: string, up: boolean?) → void
Aviator sunglasses. `up` = pushed up on the forehead.
| arg | type | description |
|---|
| lens | string | |
| frame | string | |
| up | boolean? | |