Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

roads (roadPieces.roads)

Procedural road and track pieces with real geometry: straight, curve, T and X junctions (filleted corners, stop lines), roundabout (kerbed island, arms clipped to the ring, give-way lines), ramp, kicker jump with table-top landing, banked turn (inside kerb, outside wall), guardrail, concrete wall, tyre wall, and a Catmull-Rom spline road through any list of points that follows their heights. Three styles switched by one name: country (narrow two-lane tarmac, faded dashed centre line, grass verges, marker posts), highway (four lanes, edge lines, double centre line, concrete barriers) and dirt (rutted dirt track with gravel shoulders and a grass crown, no markings). build(spec) makes the mesh data, realize(root, built, style) stands it up as temporary children with static exact MeshColliders and driveSurfaces Surfaces, spawn(kind, opts) and spline(points, opts) place a RoadPiece, pathOf(road, offset?) returns its centreline in world space for AI drivers, and gallery(parent) lays out every piece in every style.