Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

aiDrivers.track

A ready-made ~1.2 km closed test loop for AI drivers and its builder. points(origin) gives the centreline control points in driving order (main straight, a right-hander into esses, a long sweeper, two hairpins, a fast kink), centreline(origin, spacing) the same splined and evenly spaced, gridSlot(origin, slot) a grid position behind the start line, build({ origin, roadWidth, tile, synced, parent }) draws it (a 420 m grass ground box that is the only collider, flat asphalt tiles, a centre dash, red and white kerbs on the corners, a chequered start line) and waypoints({ origin, parent, synced }) spawns the control points as an aiPath entity of waypoint children, ready for an AiDriver's path field. Used by the AiDriversShowcase scene and handy for testing any driving AI.