paint(core: any, upper: string, opts: { lower: string?, split: number?, inside: number? }?) → any
| arg | type | description |
|---|
| core | any | |
| upper | string | |
| opts | { lower: string?, split: number?, inside: number? }? | |
lathe(points: { { number } }, segments: number) → any
three.js LatheGeometry(points, segments)
| arg | type | description |
|---|
| points | { { number } } | |
| segments | number | |
suitMesh(_model: any) → any
| arg | type | description |
|---|
| _model | any | |
cloakGeometry(p: { number }, normals: { number }, folds: { number }, indices: { number }, uvs: { number }) → any
| arg | type | description |
|---|
| p | { number } | |
| normals | { number } | |
| folds | { number } | |
| indices | { number } | |
| uvs | { number } | |
new(core: any, root: any, skel: any, man: any) → Dress
Paints the starter man spawned under `root` (the body entity: its `Asset` spawns the bundle), puts on the hat and
hangs the cloak. `skel` is his pose (figure.skel), `boneIndex` his bones by name. Returns nil until the bundle's
meshes are there.
| arg | type | description |
|---|
| core | any | |
| root | any | |
| skel | any | |
| man | any | |
walk(e: any, depth: number) → void
| arg | type | description |
|---|
| e | any | |
| depth | number | |
frame( ) → void
{ position, then the world-to-hat rotation as three rows }: the hat as it sits now
placeHat(self: Dress) → void
Where the hat sits now (call after the pose is final).
| arg | type | description |
|---|
| self | Dress | |
update(self: Dress, dt: number, air: (number, number, number) → void
After he has moved: the hat on his head, then the cloth. `air(x, y, z)` is the wind there, `ground(x, z)` the
land's height.
| arg | type | description |
|---|
| self | Dress | |
| dt | number | |
| air | (number, number, number | |
setVisible(self: Dress, on: boolean) → void
His own meshes, the hat and the cloak shown or hidden (first person hides him from his own eyes).
| arg | type | description |
|---|
| self | Dress | |
| on | boolean | |
destroy(self: Dress) → void
| arg | type | description |
|---|
| self | Dress | |