Crumple Zone: Crash Test Dummy Simulator
README.md
crashDummies tests
Regression suite for the crashDummies package. It checks API behaviour and invariants, never tuning
numbers (joint stiffness, belt rates, measured g), so retuning the dummies does not break it:
- Catalog:
Dummies.catalog()has the six kinds in order (adult50, adult5, adult95, child6, toddler, sid) with names, positive mass and stature, the 6-year-old on a booster and the toddler in a child seat;looks()has classic, modern, cartoon, wooden and scifi;belts()runs fromnoneto the racingharness, with webbing stiffness on every real restraint and a pretensioner + load limiter. - Masses: each kind's total is the sum of its segment masses and a human mass; the occupants grow toddler < 6-year-old < 5th female < 50th male < 95th male in mass and stature.
- Assets: every material every look paints with, plus webbing, buckle, booster and child seat, resolves.
- API: unknown kind / look / belt ids are refused by
spawnandspawnVisual;spawnVisualbuilds every kind × look as drawn parts only (no Physics, collider or joint), children with their booster / child seat, and draws webbing per restraint; a ragdoll of every kind spawned in a test vehicle (at a private site, x = -1400) has its bodies and straps, andDummies.despawnleaves none of its entities and unregisters it.
Runs in edit mode (no simulation needed): zero tests run crashDummies, or
tools.use("tests", "run", "crashDummies").