Shapes
Bake-time geometry kit the arcticProps generators build with, on top of alpineProps' GroundKit: boxes, beams between points, lathes and cylinders, rods, tinted append, paint and warp, stone polytopes with a triangle budget, height grids, culling below ground and box colliders fro…
Shapes
Bake-time geometry kit the arcticProps generators build with, on top of alpineProps' GroundKit: boxes, beams between points, lathes and cylinders, rods, tinted append, paint and warp, stone polytopes with a triangle budget, height grids, culling below ground and box colliders from bounds.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Shapes: the geometry kit arcticProps' generators build with, on top of alpineProps' GroundKit (flat-array Geo buffers, seeded rng, convex polytopes, swept tubes, geodesic blobs). Bake-time only: nothing on the gameplay path requires it. local S = require("~.Shapes") local g = S.new() S.add(g, S.box(0.5, 0.2, 0.5), { p = { 0, 1, 0 }, r = S.rot(0.3) }, { 1, 0.9, 0.8 }) local rock = S.rock(rng, { 1, 0.7, 0.9 }, { chamfers = 12, level = 2, disp = 0.05 }) A Geo is { positions, normals, uvs, colors, indices } (indices 0-based). Vertex colour RGB is a tint the material multiplies its albedo by, alpha the wind-sway weight (1 on solid parts).
seed(kind: string, variant: number, salt: number?) → number
A seed from a kind name and a variant number (stable across sessions).
| arg | type | description |
|---|---|---|
| kind | string | |
| variant | number | |
| salt | number? |
add(dst: any, src: any, xf: any?, tint: { number }?) → any
Copy src into dst through { p, r, s } with an optional RGB tint.
| arg | type | description |
|---|---|---|
| dst | any | |
| src | any | |
| xf | any? | |
| tint | { number }? |
paint(g: any, fn: (number, number, number, number, number, number) → void
Paint every vertex of g with fn(x,y,z,nx,ny,nz) -> r,g,b (alpha kept).
| arg | type | description |
|---|---|---|
| g | any | |
| fn | (number, number, number, number, number, number |
tint(g: any, t: { number }) → any
Multiply every vertex colour by a tint.
| arg | type | description |
|---|---|---|
| g | any | |
| t | { number } |
warp(g: any, fn: (number, number, number) → void
Move every vertex by fn(x,y,z) -> x,y,z, then rebuild smooth normals (optional).
| arg | type | description |
|---|---|---|
| g | any | |
| fn | (number, number, number |
box(hx: number, hy: number, hz: number, uv: number?, color: { number }?) → any
A flat-faced box of half extents (hx, hy, hz) centred on the origin; UVs in metres * uv.
| arg | type | description |
|---|---|---|
| hx | number | |
| hy | number | |
| hz | number | |
| uv | number? | |
| color | { number }? |
basisFrom(dx: number, dy: number, dz: number, ux: number?, uy: number?, uz: number?) → void
| arg | type | description |
|---|---|---|
| dx | number | |
| dy | number | |
| dz | number | |
| ux | number? | |
| uy | number? | |
| uz | number? |
beam(a: { number }, b: { number }, w: number, h: number, uv: number?, up: { number }?) → any
A box beam from a to b, w wide and h tall (cross-section), optional up vector.
| arg | type | description |
|---|---|---|
| a | { number } | |
| b | { number } | |
| w | number | |
| h | number | |
| uv | number? | |
| up | { number }? |
lathe(profile: { { number } }, sides: number, o: any?) → any
A lathe: profile { {r, y}, ... } swept around Y with `sides` facets. Caps close a zero-radius end automatically; capTop/capBottom add flat discs.
| arg | type | description |
|---|---|---|
| profile | { { number } } | |
| sides | number | |
| o | any? |
cap(p: { number }, up: boolean) → void
| arg | type | description |
|---|---|---|
| p | { number } | |
| up | boolean |
cylinder(r: number, y0: number, y1: number, sides: number, o: any?) → any
A cylinder of radius r from y0 to y1 (capped).
| arg | type | description |
|---|---|---|
| r | number | |
| y0 | number | |
| y1 | number | |
| sides | number | |
| o | any? |
rod(a: { number }, b: { number }, r: number, sides: number?, caps: boolean?) → any
A rod (thin cylinder) from a to b.
| arg | type | description |
|---|---|---|
| a | { number } | |
| b | { number } | |
| r | number | |
| sides | number? | |
| caps | boolean? |
stonePlanes(rng: any, a: number, b: number, c: number, o: any?) → void
Planes that cut a block of half extents (a,b,c) into a stone: tilted faces plus `chamfers` corner cuts; sharp 0..1.
| arg | type | description |
|---|---|---|
| rng | any | |
| a | number | |
| b | number | |
| c | number | |
| o | any? |
rock(rng: any, ext: { number }, o: any?) → any
A stone mesh: a polytope from stonePlanes, subdivided `level` times and warped by fbm displacement `disp` (metres).
| arg | type | description |
|---|---|---|
| rng | any | |
| ext | { number } | |
| o | any? |
grid(nx: number, nz: number, sx: number, sz: number, h: (number, number) → void
A height grid over [-sx/2, sx/2] x [-sz/2, sz/2]: h(x, z) -> y. `skirt` drops the border to y = -skirt. color(x,y,z,nx,ny,nz) -> r,g,b.
| arg | type | description |
|---|---|---|
| nx | number | |
| nz | number | |
| sx | number | |
| sz | number | |
| h | (number, number |
cullBelow(g: any, y: number) → any
Drop every triangle whose three vertices all sit below y (cuts buried geometry).
| arg | type | description |
|---|---|---|
| g | any | |
| y | number |
boxOf(g: any, yMin: number?, shrink: number?) → any
Axis-aligned box collider { shape, size, offset } covering g above ground (y >= yMin), optional shrink factor on X/Z.
| arg | type | description |
|---|---|---|
| g | any | |
| yMin | number? | |
| shrink | 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.