Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage cityGen.package·originates fromworld 0a0b119f-a…

streetsRuntime

Stands baked street cells round the players: `Runtime.mount{ name, meshes, material, parent, cell, loadRadius, unloadRadius, colliderRadius, budget }` -> update(places), standAll, stats, cells, destroy. One entity per cell (Model), one child per collider mesh (MeshCollider with i…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

cityGen.streetsRuntime

Stands baked street cells round the players: Runtime.mount{ name, meshes, material, parent, cell, loadRadius, unloadRadius, colliderRadius, budget } -> update(places), standAll, stats, cells, destroy. One entity per cell (Model), one child per collider mesh (MeshCollider with its physics surface). See STREETS.md in the package.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

cityGen.streetsRuntime: stands baked street cells round whoever is playing. A bake (the streets bake script over cityGen.streetscape) writes, per 256 m cell, mesh assets named `st_<cx>_<cz>_<part>` (`m` before a negative number): `surf` is what is drawn, `far` its plain far form (ways as strips, junctions as one polygon), `col_<surface>` what is solid, one per physics surface (asphalt, setts, paving, stone, gravel, earth). This module knows nothing of the plan: it is handed those meshes and stands them, each cell one entity (Model) with one child per collider (MeshCollider with its surface), near the places it is told people are. local Streets = require("cityGen.streetsRuntime") local h = Streets.mount({ meshes = asset.list({ type = "mesh", path = "/zero/source/metropolis/verrane/baked/streets" }), -- a LITERAL path material = paint, -- the material of the drawn surfaces (a handle or key; cityGen.shaders.streetPaint) parent = entity, -- optional: what the cells are stood under cell = 256, loadRadius = 700, unloadRadius = 860, colliderRadius = 330, farRadius = 3000, budget = 1, }) h.update({ { x, z }, ... }) -- every frame (or less often): the places to stand streets round h.standAll() -- or everything at once (a slice, a test) h.stats() h.destroy() Cells are local to each peer (static ground: every peer stands its own). Surfaces: `Streets.defineSurfaces()` gives the physics engine the names the colliders carry (cityGen.streetStyle SURFACES), once.

ModelMeshCollider

number(tag: ?) → void

argtypedescription
tag?

parse(name: ?) → void

"st_3_m2_col_asphalt" -> 3, -2, "col_asphalt"

argtypedescription
name?

defineSurfaces(surfaces: ?) → void

argtypedescription
surfaces?

mount(opts: ?) → void

argtypedescription
opts?

add(name: ?, ref: ?) → void

argtypedescription
name?
ref?

stand(c: ?, far: ?) → void

argtypedescription
c?
far?

solid(c: ?) → void

argtypedescription
c?

soften(c: ?) → void

argtypedescription
c?

unstand(c: ?) → void

argtypedescription
c?

distance(c: ?, x: ?, z: ?) → void

How far a cell's ground is from a place (0 inside it).

argtypedescription
c?
x?
z?

update(places: ?) → void

argtypedescription
places?

standAll(pause: ?) → void

Everything, solid, now (a slice; a test). `pause` is called between cells.

argtypedescription
pause?

stats( ) → void

cells( ) → void

destroy( ) → void

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.