Log inGet started
World

Crumple Zone: Crash Test Dummy Simulator

Branchmain
Commit8d4e06b8c8

README.md

cars

The crashCars public API, required as require("crashCars.cars"). It reads the catalog (catalog, looks, spec, derive), exposes the structure model every car crushes by (structure(m), crushForce(m, S, x, face)), and spawns a whole car: a dynamic chassis with four WheelColliders, cabin colliders (floor pan, seat cushions and backs, dash, steering wheel, toe board, firewall, rear bulkhead, door rings), seat H-point and belt-anchor children, a car-shaped custom SoftBody shell held to the cabin, a bumper and a bonnet, and the CrashCar component that runs the crush. Also whenReady, fromChassis, despawn, setVelocity (tow or launch the chassis and shell together), the frame helpers worldToLocal / localToWorld / localDir, and the collision bits in GROUPS (shell = bit 20, dummy = bit 21).

Called by games and rigs (crashRig, crashObstacles' parkedCar, the package example). Spawn on ONE peer; everything it creates is synced unless synced = false. See the package README for the full reference and measured numbers.