Log inGet started
·
scenemodule · drop-in viewer
asset⌬ scenemodulesceneModuleprimary: init.luau·originates fromworld 8c90d7c4-9…

Racecourse.sceneModule

One racecourse set, modelled in code and placed once by `scenes/main.scene/build.luau`. It draws:

by◐Doomin·posted 5d ago
What it does

Racecourse — the oval and everything around it

One racecourse set, modelled in code and placed once by scenes/main.scene/build.luau. It draws:

  • the apron: one wide slab of grass the whole course sits in,
  • the turf lane: an elliptical ring 22 m wide built from BufferGeometry, mown in alternating stripes, with a crisp white line on both shoulders,
  • the rails: white posts every couple of metres with white and crimson horizontal bars, on the outside of the lane and on the infield side,
  • the finish: white stripes painted across the lane at the finish line, and the white goal post with its capped uprights and crossbar standing over it,
  • the grandstand: a long stand outside the home straight — a concrete base, three stepped seating tiers in cream and crimson, four rows of a faceted crowd per tier, a colonnade, a cream slab roof and eight barrel vaults over it,
  • the infield: low-poly pines, a pond, the tote board with a colour bar per saddle number, and the starting gate with its dividers and legs.

What it needs from the scene

Nothing but a place to stand. Placed as:

asset.resolve("Racecourse", "sceneModule"):instantiate(nil, { name = "course" })

The numbers it mirrors

A = 92      semi-axis along X (centreline)
B = 56      semi-axis along Z
WIDTH = 22  lane width

These are RaceSim.TRACK, the ellipse the race is run on. The module declares its own copy because a scene module compiles in its own environment and cannot require a world module — change the three numbers in both files and the lane, the rails, the finish and the starting gate all follow.

The finish line is at t = 0, world (92, 0, 0); the home straight runs along Z and the grandstand stands outside it at +X, which is the side the broadcast camera and the goal-front camera shoot from.

Interface

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

conforms to

zero/source-extract/v2

Racecourse — the oval and everything that makes it a racecourse: the emerald turf lane with its mown stripes, the white-and-crimson rail on both sides, the goal post and finish line, the grandstand packed with a low-poly crowd, and the infield with its trees and tote board. Everything is measured off `RaceSim.TRACK`, the same ellipse the race runs on, so the horses never leave the turf.

pose(distance: number) → void

The same ellipse `RaceSim.pose` walks, so the gate stands where the field is.

argtypedescription
distancenumber

mat(colour: string, roughness: number) → any

argtypedescription
colourstring
roughnessnumber

ringGeometry(inner: number, outer: number, y: number, segments: number, fromSeg: number?, toSeg: number?) → any

A flat ring between two offsets from the centreline, as one piece of geometry: the turf lane and every painted band on it are made with this.

argtypedescription
innernumber
outernumber
ynumber
segmentsnumber
fromSegnumber?
toSegnumber?

bandGeometry(offset: number, y0: number, y1: number, segments: number, fromSeg: number?, toSeg: number?) → any

A vertical band following the oval — one rail bar, or one painted stripe.

argtypedescription
offsetnumber
y0number
y1number
segmentsnumber
fromSegnumber?
toSegnumber?
⌬ Metadata
description

Sub-parts

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

4items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · Racecourse.sceneModule

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.