Crumple Zone: Crash Test Dummy Simulator
README.md
crashObstacles tests
Regression suite for the crashObstacles package. It checks API behaviour and invariants, never
tuning numbers (soft-body stiffness, dent depths, g levels), so retuning the obstacles does not break it:
- Catalog:
Obstacles.catalog()andObstacles.kinds()list the eleven obstacles inORDER(wall, offset, smallOverlap, bollard, pole, tree, guardrail, cushion, parkedCar, sidePole, rear); every spec has a name, a mode (frontal/side/rear), a test, a description, a crushable flag and analignX;sidePoleis side-on with a pole diameter,rearcarries its mover numbers, the rest are frontal; overlap barriers move the car off-centre more for a wider car; unknown kinds have no spec. - Assets: every mesh and material the package ships (and the Scots pine model) resolves.
- Spawn: an unknown kind is refused; every obstacle spawns locally at a private site (x = -1400)
with a tagged root, drawn parts whose mesh and material resolved, soft parts when crushable and a
mover for
rear, andObstacles.despawnleaves none of its entities behind (the parked crashCars car's chassis, shell and wheels included).
Runs in edit mode (no simulation needed): zero tests run crashObstacles, or
tools.use("tests", "run", "crashObstacles").