Crumple Zone: Crash Test Dummy Simulator
README.md
obstacles
The crashObstacles API: require("crashObstacles.obstacles"). spawn({ kind, position, synced, vehicle })
builds one of eleven crash-test obstacles (wall, offset, smallOverlap, bollard, pole, tree, guardrail,
cushion, parkedCar, sidePole, rear) with its impact face at position pointing +Z, and returns a handle
with the obstacle's spec (mode frontal / side / rear, real-world test, crushable), the car's lateral
alignX for the overlap and, for rear tests, the mover trolley the rig launches. Also despawn,
catalog, kinds, spec, alignX, dent (permanent dent in metres) and repair. Called by a crash
rig or any game that needs something to crash into; see the package README for the full contract.