Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

Surface

Says which driving surface an entity is (kind: tarmac, wetTarmac, concrete, cobbles, gravel, dirt, mud, grass, sand, snow, ice, rumble, puddle or oil; synced). Every descendant without a Surface of its own reads the same, so a road's deck, a car park or a field needs it once on its root. driveSurfaces.surfaces.sample reads it for a wheel's hit entity; Surfaces.paint(entity, kind) adds it together with the surface's material. Needs no sibling component; a collider somewhere in the hierarchy is what wheels actually hit.