ordGuns
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
ordGuns
<!-- 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/v2ffe.ordnance.ordGuns — what leaves the barrels. Muzzle flash and the light it throws, the lick of flame down the bore, the unburnt powder, the two blast rings running out across the snow, the snow ground-wave they blow off it, the gun smoke that hangs and shears downwind, the gas venting from the breeches, the steam off a hot tube and the embers drifting through the line late in the film. Every emitter here is stepped by the film clock through `ordFx`, and every value is a pure function of film time. Shots served: 5, 9, 11, 13, 15. A blast ring is a burst off the SURFACE of a small disc at one uniform speed: every particle in the burst leaves the same circle at the same rate, so the burst IS a ring, and it expands and thins on its own without anything animating a radius.
elevation(t: number) → number
Barrel elevation in degrees at film time `t`: laid in shot 4, corrected at the relay, dropped back to level when the guns cease fire.
| arg | type | description |
|---|---|---|
| t | number |
traverse(t: number) → number
Traverse in degrees, the 6 the battery swings on at the correction.
| arg | type | description |
|---|---|---|
| t | number |
bore(t: number) → void
The unit vector a barrel points down at film time `t`.
| arg | type | description |
|---|---|---|
| t | number |
muzzle(n: number, t: number) → void
Where gun `n`'s muzzle stands at film time `t`.
| arg | type | description |
|---|---|---|
| n | number | |
| t | number |
build(root: any) → void
| arg | type | description |
|---|---|---|
| root | any |
reset( ) → void
fireRound(n: number, t: number, mz: { number }) → void
Everything one round throws, fired from gun `n` standing at `mz`.
| arg | type | description |
|---|---|---|
| n | number | |
| t | number | |
| mz | { number } |
shoot(key: string, origin: { number }, direction: { number }?, count: number) → void
| arg | type | description |
|---|---|---|
| key | string | |
| origin | { number } | |
| direction | { number }? | |
| count | number |
tick(t: number, dt: number) → void
| arg | type | description |
|---|---|---|
| t | number | |
| dt | 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.