Log inGet started
World

Crumple Zone: Crash Test Dummy Simulator

Branchmain
Commit8d4e06b8c8

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() and Obstacles.kinds() list the eleven obstacles in ORDER (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 an alignX; sidePole is side-on with a pole diameter, rear carries 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, and Obstacles.despawn leaves 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").