ww_config
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/v2Weatherworks shared configuration: island geometry, zone registry, and the deterministic island height function used by terrain baking, prop placement, and gameplay queries alike. Everything angle-based uses degrees with theta = atan2(z, x) in world space.
hash2(ix: number, iz: number) → number
Deterministic noise (value noise + fbm), no math.random anywhere.
| arg | type | description |
|---|---|---|
| ix | number | |
| iz | number |
vnoise(x: number, z: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
fbm(x: number, z: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
smoothstep(a: number, b: number, x: number) → number
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| x | number |
angDist(a: number, b: number) → number
Zone weights by angle (deg). Returns {desert=w, rainforest=w, ...}
| arg | type | description |
|---|---|---|
| a | number | |
| b | number |
zoneWeights(thetaDeg: number) → void
| arg | type | description |
|---|---|---|
| thetaDeg | number |
zoneAt(x: number, z: number) → string
The dominant zone key at a world position, or "hub" / "ocean".
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
reliefTemperate(x: number, z: number, r: number) → number
Per-zone relief functions (r = radius, x/z world, th = angle deg)
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| r | number |
reliefDesert(x: number, z: number, r: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| r | number |
reliefAlpine(x: number, z: number, r: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| r | number |
reliefForest(x: number, z: number, r: number, th: number) → number
| arg | type | description |
|---|---|---|
| x | number | |
| z | number | |
| r | number | |
| th | number |
islandHeight(x: number, z: number) → number
The island height function H(x, z) — blended, seamless.
| arg | type | description |
|---|---|---|
| x | number | |
| z | number |
hubHeight(rho: number) → number
Hub plaza height (r <= R_HUB).
| arg | type | description |
|---|---|---|
| rho | number |
bridgeSpan(thetaC: number) → void
Bridge deck height along t in 0..1 for a zone's bridge (hub edge -> ring shore). The far end runs INTO the rising sector ground so the deck stays proud of the terrain through the seam — no capsule pocket at the landing.
| arg | type | description |
|---|---|---|
| thetaC | number |
bridgeDeckY(thetaC: number, t: number) → number
| arg | type | description |
|---|---|---|
| thetaC | number | |
| t | number |
Shared tuning constants for Weatherworks zones, effects and console defaults.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.