setLayout
Edits an existing circuit control polygon in edit mode. Rejects non-finite coordinates, points less than 24 m apart and crossing segments. Preserves biome and road width. After editing, run firstLightMaps.rebuild and inspect the smoothed road visually.
Edits an existing circuit control polygon in edit mode. Rejects non-finite coordinates, points less than 24 m apart and crossing segments. Preserves biome and road width. After editing, run firstLightMaps.rebuild and inspect the smoothed road visually.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2setLayout(index: number, points: {Point}) → any
Replace one circuit's control polygon in EDIT. Validates finite coordinates, separation, and intersections before saving. Rebuild the stage afterwards.
| arg | type | description |
|---|---|---|
| index | number | Existing circuit index. |
| points | {Point} | Ordered {x,z} control points, 6–80 entries, closed implicitly. |
examples
tools.use("firstLightMaps","setLayout",1,{{-160,-90},{0,-130},{170,-90},{170,70},{0,130},{-160,70}})cross(a: ?, b: ?, c: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? | |
| c | ? |
Point = {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.
Showing up to 3 levels deep. Open a part to see what it holds further down.
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.