Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

RoadPiece

Turns its entity into a road or track piece: kind (straight, curve, tJunction, xJunction, roundabout, ramp, kicker, bankedTurn, guardrail, wall, tyreWall, spline), style (country, highway, dirt) and size fields (length, radius, angle, bank, slope, height, gap, width, arms, verge, rails, points, loop), all synced. It builds the geometry locally on every peer as temporary child entities (one per material, each with a static exact MeshCollider, verges/kerbs/walls with their own driveSurfaces Surface) and rebuilds whenever a field changes, so one setting restyles the piece. It also gives the entity a Surface matching the style (tarmac or dirt). Inside a scene build it records itself and builds right after, so scenes store only the fields. :path(offset?) returns the centreline in world space.