goals
Goal kinds read off a crashRig `CrashResult`, shaped for `unlockLadder`: `KINDS.run` (reached the barrier), `stars` (rating ≥ value), `hic` (head HIC15 < value), `headG` (head peak < value g), `chest3ms` (chest 3 ms < value g). Each is `{ text(goal), met(goal, result) -> (ok, mea…
goals
Goal kinds read off a crashRig CrashResult, shaped for unlockLadder: KINDS.run (reached the barrier), stars (rating ≥ value), hic (head HIC15 < value), headG (head peak < value g), chest3ms (chest 3 ms < value g). Each is { text(goal), met(goal, result) -> (ok, measured) }. A result the rig marked invalid never meets a goal; invalid(result) -> (bool, note) reads it. matches(step, result) says whether a result is a run of step.config (car, dummy, belt, obstacle, speed ±1.5 km/h). Use: Ladder.new({ goals = Goals.KINDS, match = Goals.matches, ... }).
Scoped to this part · feeds back into the world's score.