Gaitkit Open the lab
Rail Track, A standard-gauge railway tile on a 4 m grid: straight (1 to 4 cells), a 90 degree curve of 6 m radius filling 2 x 2 cells, a diamond crossing or a buffer stop, on a ground board so tiles butt edge to edge. userData.tile lists the grid cells, the track ends (position and direction) and the rail-top height for placing trains.
Prop · Still

Rail Track

A standard-gauge railway tile on a 4 m grid: straight (1 to 4 cells), a 90 degree curve of 6 m radius filling 2 x 2 cells, a diamond crossing or a buffer stop, on a ground board so tiles butt edge to edge. userData.tile lists the grid cells, the track ends (position and direction) and the rail-top height for placing trains.

Size
4.0 × 0.55 × 4.0 m
Triangles
168
Open in the lab Ready for any engine. The download carries the knobs you set here.

Tune it

4 knobs: Piece, Length, Ground, Sleepers.

Specs

Size
4.0 × 0.55 × 4.0 m
width × height × depth
Triangles
168
of 6,000
Draw calls
1
one vertex-colour material
Knobs
4
3 presets
Night lights
1
lamp

Passed the validator: real scale, rests on y = 0, front faces +Z, deterministic.

Use it

Code for the specimen as it is set up above; it follows your knobs.

JavaScript
import { createAsset } from 'https://gaitkit.com/cdn/rail-track.mjs';

const railTrack = createAsset();
scene.add(railTrack);                      // rests on y = 0, front faces +Z

More in the docs; agents can fetch all of this through MCP.

Knobs

KnobTypeValuesDefaultWhat it does
piecechoicestraight curve crossing bufferstraightstraight: track along Z. curve: a quarter turn from the south edge to the east edge of a 2 x 2 cell board. crossing: two straights crossing at right angles. buffer: a straight that ends in a buffer stop at +Z.
lengthrange1 to 4, step 11Straight and buffer pieces only: length in 4 m grid cells.
groundchoicegrass gravel sand snowgrassThe board under the ballast: grass, gravel (yard), sand (desert line), snow.
sleeperschoicetimber concretetimberSleeper (tie) material: timber (brown, branch line) or concrete (grey, main line).

Presets: curve {"piece":"curve"} · yard end {"piece":"buffer","ground":"gravel","sleepers":"concrete"} · snowy main line {"piece":"straight","length":3,"ground":"snow","sleepers":"concrete"}

Files

FileWhat
rail-track.glbGLB, default look · 29 KB
rail-track.mjsES module, every knob live
rail-track.objOBJ, static, no colour
rail-track-params.jsonknob schema, presets, night zones

Licence

Use it in games, apps, renders and client work, commercially and without credit. Do not resell it as an asset or train a 3D generator on it. The full licence.