Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld c94b6bf7-7…

GlWorld

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->

by◐victue·posted 2mo ago
What it does

GlWorld

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this component provides and who consumes it, then delete both comment lines. -->

TODO: describe this component.

Interface

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

conforms to

zero/source-extract/v2

gl.world.GlWorld — SLICE 2: the sea, the eight islands, and the world underwater. Owned by the "Islands, sea & underwater" slice. Attach to `Mount_World`. The engine's spectral ocean cannot render on this platform (its surface shader samples the screen colour inside non-uniform control flow, so the WGSL validator refuses the pipeline — see /zero/source/design/spec.md). The sea is therefore one large stylized surface drawn with the engine's own water material, and the SWELL everything rides is `gl.ocean.gl_ocean` in code, so the ships, swimmers and chests all agree on where the water is. What it publishes (read it off the component; attributes are set too): islands() -> { island } from gl_core, with .root entity islandAt(x, z) -> the island containing or nearest to a point seaHeight(x, z) -> the drawn swell's height there attitude(x,z,hd,len,beam) -> pitch, roll in radians townOf(islandId) -> the dock position a ship makes for clock() -> seconds since the slice woke (the wave phase)

Model

prop(parent: any, name: string, pos: { number }, scale: { number }, tint: { number }, opts: any?) → void

argtypedescription
parentany
namestring
pos{ number }
scale{ number }
tint{ number }
optsany?

palm(parent: any, name: string, x: number, z: number, y: number, lean: number) → void

A palm: a leaning trunk of three segments and a crown of flattened fronds.

argtypedescription
parentany
namestring
xnumber
znumber
ynumber
leannumber

chest(parent: any, name: string, x: number, y: number, z: number) → void

A treasure chest: the signature object this slice was told to leave a slot for.

argtypedescription
parentany
namestring
xnumber
ynumber
znumber

dressFoosha(island: any) → void

Foosha already has its land, beach and hill placed by the scene skeleton, so this slice DRESSES it (rather than stacking a second plateau on the same spot, which would z-fight) and builds the other seven from nothing.

argtypedescription
islandany

buildIsland(island: any) → void

argtypedescription
islandany

buildUnderwater( ) → void

purge( ) → void

awake( ) → void

update(dt: number) → void

argtypedescription
dtnumber

islands( ) → void

The eight islands, each with its `root` entity attached.

islandAt(x: number, z: number) → any

The island a world position stands on, or the nearest one within reach.

argtypedescription
xnumber
znumber

seaHeight(x: number, z: number) → number

The drawn sea's height at a world position, right now.

argtypedescription
xnumber
znumber

attitude(x: number, z: number, heading: number, length: number, beam: number) → void

Pitch and roll (radians) for a hull at this position and heading.

argtypedescription
xnumber
znumber
headingnumber
lengthnumber
beamnumber

townOf(islandId: string) → any

Where ships make for on an island.

argtypedescription
islandIdstring

clock( ) → number

Seconds since the slice woke — the wave phase everything shares.

submersion(x: number, y: number, z: number) → number

How submerged a point is: 0 dry, 1 under the sea.

argtypedescription
xnumber
ynumber
znumber

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

11items
▣
module · born here
❒asset
# gl_ocean <!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. --> TODO: describe this module.
▲ 0↑ born
▣
module · born here
❒asset
# gl_core One-paragraph description of what this module provides and who consumes it. ## Exports - `M.exampleFn(arg) -> result` — what it does and when to call it. - `M.exampleValue: type` — what value it carries. ## Usage Replace `<identity>` with the string `asset.create` returned — this module's source path with `/` written as `.` and each segment's type suffix dropped, the way a module at `/source/lib/thing.module` is `lib.thing` and one at `/source/kit.package/thing.module` is `kit.thing`. ```luau local M = require("<identity>") M.exampleFn("foo") ``` ## Notes - Anything callers need to know about THIS module: required runtime ordering, state ownership, side effects.
▲ 0↑ born
backing path · gl/world/GlWorld.component

Problems

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

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬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.