fauna
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
newBuilder( ) → Builder
tri(b: Builder, a: number, c: number, d: number) → void
| arg | type | description |
|---|---|---|
| b | Builder | |
| a | number | |
| c | number | |
| d | number |
quad(b: Builder, a: number, c: number, d: number, e: number) → void
| arg | type | description |
|---|---|---|
| b | Builder | |
| a | number | |
| c | number | |
| d | number | |
| e | number |
norm3(x: number, y: number, z: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number |
recomputeNormals(b: Builder) → void
Rebuild every normal from the triangles that were actually emitted. Accumulated face normals cannot disagree with the geometry, because they are derived from it.
| arg | type | description |
|---|---|---|
| b | Builder |
finish(b: Builder, opts: Opts?) → Geometry
Apply the optional uniform scale, derive normals, hand out the arrays.
| arg | type | description |
|---|---|---|
| b | Builder | |
| opts | Opts? |
aurochs(opts: Opts?) → Geometry
A wild bull: ~700 kg, ~2.8 m nose to rump, ~1.75 m at the shoulder hump. Head down, grazing. +z is forward, ground is y = 0.
| arg | type | description |
|---|---|---|
| opts | Opts? |
raptor(opts: Opts?) → Geometry
A large eagle, wings spread to a ~2 m span, gliding. Built around the body's own origin (it flies; there is no ground contact).
| arg | type | description |
|---|---|---|
| opts | Opts? |
wolf(opts: Opts?) → Geometry
A grey wolf, standing: ~1.4 m nose to rump, ~0.78 m at the shoulder. +z is forward, ground is y = 0.
| arg | type | description |
|---|---|---|
| opts | Opts? |
carcass(opts: Opts?) → Geometry
A dead aurochs on its side, midsection eaten open, the rib cage standing bare over the gap. Legs stiff, out to the side. Ground is y = 0.
| arg | type | description |
|---|---|---|
| opts | Opts? |
egg(opts: Opts?) → Geometry
One leathery dragon egg, ~9 kg: 0.25 m tall, upright, sitting on y = 0.
| arg | type | description |
|---|---|---|
| opts | Opts? |
hoardRadius(mass: number) → number
Hemisphere radius for a hoard of the given mass, metres.
| arg | type | description |
|---|---|---|
| mass | number |
hoard(mass: number) → Geometry
| arg | type | description |
|---|---|---|
| mass | number |
Geometry = {Opts = {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.