Log inGet started
World

ターフヴィクトリー / TURF VICTORY

Branchmain
Branchesmain
Commit7947fe284a

README.md

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.