Torque Valley: Driving, Drift and Crash Sandbox
README.md
SurfacePatch
A zone of one driving surface laid over whatever ground is under it: a puddle, an oil spill, a rumble strip, a patch of mud on tarmac. The zone is the entity's unit box times its world scale, turned with the entity, with the entity's origin on the ground; wheels inside it read this surface before anything they hit. It registers itself into driveSurfaces' flat patch list on awake, follows its entity, and unregisters on destroy. It also draws its own look flush on the ground (showLook): dark glossy water for a puddle, a black film with a thin-film rainbow sheen for oil, raised red/white ribbed kerb stripes along local Z for rumble, a thin slab of the surface's material for anything else. Fields kind and showLook are synced. Needs no sibling component and no collider.