dress
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
dress
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2house.dress — everything in the room that hangs, drapes or moves. The shell is the building and the seating is the furniture; this is the cloth. It is also where nearly all of Slice A's MOTION lives, because cloth is the only thing in an abandoned theatre that still does anything: curtain two gathered oxblood halves. Open for twelve shots, and they travel in across shot 13. A half is authored at its full 8.2 m width and SCALED on x, so its pleats compress as it gathers, the way real velvet does. border/legs the pelmet over the opening and the masking legs upstage, which are what makes the opening read as a stage rather than as a hole in a wall. dust sheets cotton duck over the front rows. Each is a body plus a hem flap hinged along its front edge, and the flap lifts and settles in the draught for the whole of Act I. live tip-ups rows A and B carry their tip-up bottoms as REAL entities rather than as population instances, so individual seats can rock closed one at a time as the lens passes them in shot 2. row letters a brass plate and its letter at both aisle ends of every row. shroud the sheet that comes down over the worklight in shot 13.
put(root: any, name: string, b: any, material: string, pos: { number }?, castsShadows: boolean?) → void
| arg | type | description |
|---|---|---|
| root | any | |
| name | string | |
| b | any | |
| material | string | |
| pos | { number }? | |
| castsShadows | boolean? |
curtainHalf( ) → any
One half, hanging in local space: x from 0 at the jamb to CURTAIN_W at the meeting edge, y from 0 at the top down to -CURTAIN_H, pleated in z.
pt(i: number, j: number) → void
| arg | type | description |
|---|---|---|
| i | number | |
| j | number |
borderMesh( ) → any
pt(k: number) → void
| arg | type | description |
|---|---|---|
| k | number |
fringeMesh( ) → any
pt(k: number) → void
| arg | type | description |
|---|---|---|
| k | number |
legMesh(width: number, height: number) → any
| arg | type | description |
|---|---|---|
| width | number | |
| height | number |
pt(k: number, l: number) → void
| arg | type | description |
|---|---|---|
| k | number | |
| l | number |
sheetBody(width: number, seed: number) → any
The body of a sheet lying over `seats` seats of one row, local origin at the middle of that run's foot point.
| arg | type | description |
|---|---|---|
| width | number | |
| seed | number |
h(u: number, v: number) → number
| arg | type | description |
|---|---|---|
| u | number | |
| v | number |
pt(i: number, j: number) → void
| arg | type | description |
|---|---|---|
| i | number | |
| j | number |
sheetHem(width: number, seed: number) → any
The hem along the sheet's front edge, authored about its hinge so a rotation lifts it. Local origin is the hinge, and the cloth hangs toward -Y.
| arg | type | description |
|---|---|---|
| width | number | |
| seed | number |
pt(k: number, down: boolean) → void
| arg | type | description |
|---|---|---|
| k | number | |
| down | boolean |
shroudMesh( ) → any
The sheet that comes down over the worklight in shot 13: a loose square of cloth, crumpled, with nothing under it to hold its shape.
pt(i: number, j: number) → void
| arg | type | description |
|---|---|---|
| i | number | |
| j | number |
hemRest(i: number) → void
The rest position of dust sheet `i`'s hem, in the room's coordinates.
| arg | type | description |
|---|---|---|
| i | number |
plateMesh( ) → any
build(root: any) → void
Hang everything, and return the handles the film clock drives.
| arg | type | description |
|---|---|---|
| root | any |
relink( ) → boolean
Re-derive the moving handles from the live world without rebuilding. Returns false when the room is not standing.
setCurtain(closed: number) → void
Set how far the two curtain halves have travelled in. 0 = gathered at the jambs, 1 = met at the middle.
| arg | type | description |
|---|---|---|
| closed | number |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.