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

scAnchors

Where street furniture stands: `Anchors.cell(model, cell)` answers lamps, wall lamps, trees, signals, signs, crossing waits, parking bays, benches, bins and quay bollards with position, yaw and the way they belong to; `Anchors.stops(model)` the plan's tram stops. See STREETS.md i…

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

cityGen.scAnchors

Where street furniture stands: Anchors.cell(model, cell) answers lamps, wall lamps, trees, signals, signs, crossing waits, parking bays, benches, bins and quay bollards with position, yaw and the way they belong to; Anchors.stops(model) the plan's tram stops. 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.scAnchors: where street furniture stands, from cityGen.scModel's model. The streetscape lays surfaces; what stands on them (lamps, trees, signals, signs, benches, bins, bollards, shelters) is placed by whoever owns the models, at the anchors this module answers. An anchor: { k = kind, x, y, z, yaw, e = way id (the plan's edge), s, d, ... } `yaw` turns a model whose front faces +Z to face (sin yaw, 0, cos yaw): a lamp's arm, a bench's seat and a signal's lenses face the way named below. Kinds: lamp in the kerb-side band, both sides, staggered; faces the carriageway (`class` = the way's class) lampWall old-town lanes: on the building line at 3.6 m, a bracket lamp; faces across the lane tree in the kerb-side band of avenues and boulevards (and their medians), between the lamps signal at the stop line of every arm of a signalled junction, on the near-side kerb; faces the traffic it stops sign at a stop / give-way line with no signal (`type` = "stop" | "yield") wait where people wait to cross: both kerbs of every crossing (`pair` = the two share a number) bay the middle of each parking bay (`yaw` along the way) bench, bin walking streets and boulevards bollard along a quay's edge, 0.9 m in from the coping stop a tram stop's shelter in the kerb-side band (`name` from the plan) None ever stands in the threshold strip against the fronts, on a crossing, or within 5 m of a junction's mouth.

surfaceAt(e: ?, s: ?, d: ?) → void

A way's surface at (s, d): x, y, z and its heading there (tx, tz).

argtypedescription
e?
s?
d?

yAt(r: ?) → void

argtypedescription
r?

along(model: ?, e: ?) → void

What stands along one way: a list of { k, s, d, face = 1 (towards +d) | -1 | 0 (along) ... }, made once.

argtypedescription
model?
e?

put(a: ?) → void

argtypedescription
a?

band(side: ?) → void

the middle of the kerb-side band on each side (or just behind the kerb)

argtypedescription
side?

cell(model: ?, cell: ?) → void

The anchors of one cell: every way's that lie on its rows there, the quay bollards of its paved faces.

argtypedescription
model?
cell?

stops(model: ?) → void

The plan's tram stops as anchors: the shelter in the kerb-side band of the nearest tram way, on the side its trams run. Answers them all (a bake sorts them into cells by x, z).

argtypedescription
model?

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.