Scenario catalog
Every scenario file, and the rules for inputs and starting states.
10 min read
A scenario is one physics experiment in a JSON file: the arena, the starting ball and car states, the controller inputs over time, and how long to record. RocketSim and the real game run the same file. This page lists every scenario and the rules for timing and starting states.
just validate checks them all and just sim-all runs every one in RocketSim. The schema is in
crates/scenario-schema/src/scenario.rs; axes and input signs are in
Coordinate systems.
Where scenarios live#
| Location | Files | Notes |
|---|---|---|
scenarios/ | 118: ball/ 37, car/ 59, car-ball/ 8, car-car/ 4, advanced/ 8, void/ 2 | the shared suite |
gpu-sim/scenarios/ | 24: 10 gpu-ball-*, 14 gpu-car-* | GPU-only edge cases, same schema (see GPU-only scenarios) |
just validate covers scenarios/; gpu-sim checks its own.
In the real game arena scenarios with a ball and at most one Blue Octane-hitbox car run today. All of
ball/,car/andcar-ball/and the fivea02-*have been captured; the threea01-*run but aren't captured yet.car-car/needs a second car andvoid/an empty arena, so those are RocketSim-only (Coverage).just car-suite [repeats] [filter] [dir]runs a folder of car scenarios in both and prints a comparison table, for examplejust car-suite 1 "car-jump-*"orjust car-suite 1 "*" scenarios/car-ball.Exported episodes are scenarios too: any RL episode can be saved as one, and
just watchwrites them totmp/watch/(Watching bots).Training task files in
tasks/are not scenarios; they have their own schema (Task file format).
Control timing#
capture.warmup_ticksphysics steps run first with neutral input for every car. The state after warmup is tick 0, and it is recorded.Tick
tis the state aftertphysics steps counted from tick 0.A control step
{ "car": c, "start_tick": s, "duration_ticks": d, ... }is the input applied before the step from tickttot + 1, for everytins .. s + d. It drives the steps that produce tickss + 1 ..= s + d. Withstart_tick: 0the input already affects tick 1.start_tickcounts from tick 0, after warmup. Inputs cannot be scheduled during warmup.Outside every control step (before, between and after), a car's input is neutral: all axes 0, all buttons released. Releasing a button is therefore just a gap. Because
jumpis edge-triggered, two jump presses need at least one tick of gap between them.Validation rejects:
overlapping steps for the same car;
steps that end after the capture (
s + d > capture.duration_ticks);duration_ticks: 0;non-finite or out-of-range (-1..1) analog values;
steps for cars that do not exist.
All errors are reported together.
In traces,
CarSample.controlsis the input of the step that produced that sample. It isNoneat tick 0. Withevery_n_ticks > 1it is the input of the last step before the sample. Events from skipped steps are still accumulated into the next recorded sample. Ifduration_ticksis not a multiple ofevery_n_ticks, the trailing ticks are simulated but not recorded, and the trace carries a warning.CarSample.on_groundandcar_landedevents in the sample at ticktcome from the suspension raycast RocketSim casts at the start of the stept - 1 → t, so they describe the wheel contacts of the pose at tickt - 1(at tick 0: of the tick-0 pose, probed during setup). Acar_landedat tickttherefore means the tickt - 1pose already had three or more wheels in contact.
Example: hold jump for the steps producing ticks 1–10, release, then dodge forward on the steps producing ticks 21–30:
"controls": [
{ "car": 0, "start_tick": 0, "duration_ticks": 10, "jump": true },
{ "car": 0, "start_tick": 20, "duration_ticks": 10, "jump": true, "pitch": -1.0 }
]Initial state in RocketSim#
Cars are added in
entities.carsorder. A car's index is its id in events and traces. Adding a car consumes arena RNG, which is seeded fromseed.Cars are then teleported to their requested state. Gameplay state not in the schema (jump/flip used, timers) starts from RocketSim's defaults: nothing used. Wheel contacts and the sticky-force gate are seeded from the pose (see Coordinate systems).
boostomitted means RocketSim's spawn boost (33.3). Most car scenarios setboost: 100, because a car only picks up a pad while not full; this avoids pad-pickup noise. Scenarios that spend boost (car-boost-*,car-steer-fast,cb02-car-boosts-into-ball,cc01-car-demos-*) keep their paths clear of every pad instead (check forcar_pickup_boostevents when adding one). Thecar-pad-*scenarios start with 20 boost on purpose.RocketSim always has a ball. A scenario without one gets the default ball, at rest at (0, 0, 93.15), and the trace carries a warning. Car scenarios therefore park an explicit ball out of the way at (-3000, 3000, 93.15), on flat floor away from every car path. A resting ball reports a
ball_hit_worldevent every tick, so expect a long contact list for it.Mutators are RocketSim's defaults: demolitions
Normal, team demos off. These are recorded in the trace'srunner.details(game_mode,demo_mode,rng_seed).
Catalog#
The codes in parentheses group scenarios into families, numbered roughly in order of difficulty:
B ball, C car, CB car–ball, CC car–car, and A advanced (backboard and goal frame,
dodges and flips). In the ball table, R marks pure rolls, M the curved ramp between floor
and wall, and Q spin-rounding checks. Car–ball, car–car and advanced file names start with their
code (cb01-…, cc02-…, a02-…).
Unless noted, cars are Octanes starting at rest at z = 17 with 100 boost, and
every scenario uses seed: 1.
Ball (scenarios/ball/)#
| IDs | Isolates |
|---|---|
ball-drop-center-500, ball-drop-high-1800 (B01) | gravity, floor restitution, damping |
ball-lob-side-wall (B02), ball-wall-glance (B04) | wall normals, restitution, friction |
ball-spin-floor (B03), ball-spin-top (Q01) | spin–floor coupling (handedness check), angular velocity quantization |
ball-corner (B05), ball-ceiling | corner and ceiling geometry |
ball-roll-* (R01–R06, Q02, Q03) | pure rolling, quantization loss |
ball-ramp-roll-* (M01–M04), ball-ramp-drop-* (M05–M07), ball-ramp-sweep-* (M08, 300–1400 uu/s), ball-ramp-sweep-off-* (M09, 300 uu off the y = 0 mesh seam) | floor-wall curve, multi-facet contacts, mesh-seam crossings |
ball-long-chaotic | long-horizon drift |
Car (scenarios/car/)#
| ID | Setup | Isolates |
|---|---|---|
car-fall-wheels-100, -300, -1000 (C01) | upright car released 100 / 300 / 1000 uu above rest | suspension, landing detection (car_landed) |
car-fall-roof-300 (C02) | upside down (roll π) | roof contact; car stays on its roof (z ≈ 40, on_ground false) |
car-fall-side-300 (C02) | on its right side (roll π/2) | side contact, recovery onto wheels |
car-fall-nose-300 (C02) | nose down (pitch -π/2) | nose contact, tip-over |
car-fall-tilted-300 (C02) | rolled 45° | two-wheel first contact |
car-fall-corner-300 (C02) | skewed pose (pitch -0.6, yaw 0.9, roll 0.7) | a single hitbox corner lands first, then tumbles |
car-fall-nose-corner-300 (C02) | nose down but tilted (pitch -1.4, yaw 0.4, roll 0.3) | nose impact with one front corner first |
car-fall-nose-edge-300 (C02) | nose down to pitch -1.4, no roll | the nose's bottom edge lands flat, two corners at once: reproduces D3 |
car-throttle-full / -half (C03) | throttle 1 / 0.5 for 3 s, then coast 1 s | engine force, drag, throttle top speed (1410) |
car-throttle-reverse (C03) | throttle -1 for 3 s from x = 3500 | reverse force; in RocketSim it mirrors forward exactly |
car-throttle-brake (C03) | throttle 1 for 2 s, then -1 for 1 s | braking |
car-steer-slow / -medium / -fast (C04) | pre-roll to ~350 / ~840 / ~1860 uu/s (the last with boost), then steer 1 + throttle 1 | turning at several speeds |
car-steer-medium-left (C04) | mirror of medium, starting at y = +2000 | steer sign symmetry |
car-powerslide-medium (C04) | steer + handbrake at ~840 uu/s | handbrake friction |
car-boost-from-rest (C05) | boost + throttle for 3 s | boost acceleration, supersonic, 2300 cap |
car-boost-at-speed (C05) | throttle 1 s, then boost 2 s | boost from ~1000 uu/s |
car-boost-runs-out (C05) | boost with 20 in the tank | the tank emptying mid-acceleration |
car-jump-tap-1, car-jump-hold-3, -10, -24, -40 (C06) | jump held 1 / 3 / 10 / 24 / 40 ticks | jump impulse and hold force; 1 ≡ 3 and 24 ≡ 40 in RocketSim |
car-double-jump (C06) | jump 10 ticks, second press at tick 40 | double jump |
car-air-none (C07) | released at z = 1500, no input | free-fall baseline |
car-air-pitch, -yaw, -roll, -pitch-half, -pitch-yaw-roll (C07) | full (or half) input for 0.5 s, then neutral for 0.5 s | air torque, input scaling, angular damping |
car-pad-small-offset-150 … -190 (C08) | 20 boost, passes the small pad at (0, 1024) along +Y at 1000 uu/s, 150–190 uu to the side, then brakes | small pad pickup radius (D4) |
car-pad-small-headon-600 / -1000 / -1400 / -2000 (C08) | straight over the same pad at 600–2000 uu/s | pickup timing by speed |
car-pad-big-offset-190 … -214 (C08) | the same past the big pad at (3584, 0), 190–214 uu to the side | big pad pickup radius (208) |
car-pad-big-headon-1000 / -2000 (C08) | straight over the big pad | pickup timing by speed |
In the real game, car-fall-nose-300, -side-300, -roof-300 and -nose-edge-300 land exactly
flat on a face or edge and show D3; the other falls match. The small car-pad-* scenarios show D4:
the game gives boost at offsets up to 174–176 uu, RocketSim at none of them.
Car–ball (scenarios/car-ball/)#
| ID | Setup | Isolates |
|---|---|---|
cb01-ball-into-car-front / -side (CB01) | car at rest facing +Y; ball rolls into it at 1500 uu/s | car–ball impulse on a stationary car |
cb01-ball-onto-car-roof (CB01) | ball dropped from z = 400 onto the roof | vertical car–ball contact |
cb02-car-drives-into-ball (CB02) | full throttle from 2000 uu away | impact geometry, speed transfer (touch at ~1200 uu/s) |
cb02-car-boosts-into-ball (CB02) | the same, boosting | faster impact |
cb03-car-offset-hit-50 / -100 / -120 (CB03) | ball offset 50 / 100 / 120 uu toward +X (the car's left) | offset and glancing hits, tangential impulse, spin |
Car–car (scenarios/car-car/)#
Simulator-only for now: Free Play has one car, and multi-car real-game capture is not set up.
| ID | Setup | Isolates |
|---|---|---|
cc01-car-bumps-stationary-car (CC01) | blue drives (throttle only) into the side of a stationary orange car | bump impulse (car_hit_car, is_demo: false) |
cc01-car-demos-stationary-car (CC01) | blue boosts to supersonic first | demolition (is_demo: true) |
cc02-head-on (CC02) | both drive at each other | head-on contact, solver ordering |
cc02-oblique-45 (CC02) | 45° paths that meet simultaneously | oblique contact without a bump event (see notes) |
Advanced (scenarios/advanced/)#
| ID | Setup | Isolates |
|---|---|---|
a01-ball-backboard (A01) | ball fired at the orange backboard at z ≈ 1000 | backboard mesh |
a01-ball-backboard-corner (A01) | high into the back corner cut | corner mesh |
a01-ball-crossbar (A01) | upper half of the ball strikes the crossbar edge | goal-frame seam (contact normal ≈ (0, -0.79, -0.61)) |
a02-jump-front-flip / -back-flip / -side-flip (A02) | jump, release, dodge at tick 20 | dodge impulses and landing |
a02-moving-front-flip (A02) | front flip at ~1000 uu/s | dodge scaling with forward speed |
a02-flip-reset-setup (A02) | inverted airborne car uses its double jump; a falling ball meets its wheels | flip reset: car_landed on the ball at tick 81, jump flags cleared |
Empty arena (void/)#
| ID | Purpose |
|---|---|
void-ball-drop | Determinism check, ball only (the_void, no meshes) |
void-car-controls | Determinism check, one car with boost, an air jump, pitch and roll (the_void) |
GPU-only scenarios (gpu-sim/scenarios/)#
24 files in the same schema, used only by the experimental GPU simulator: 10
gpu-ball-* edge cases for stage B1 (ball + arena) and 14 gpu-car-* scenarios for stage C1 (car free flight);
the stages are listed in What each stage covers.
gpu-sim/scenarios/README.md describes them; results are in
GPU results.
Notes from running the suite (RocketSim 0.2.11 + vendored patches)#
These describe what the simulator does, not the real game:
car_hit_caris emitted only for bumps and demos: the attacker is moving toward a victim inside its front bump cone. Other car–car contacts (for examplecc02-oblique-45) deflect the cars without any event.car_hit_ballfires on every tick with contact, so a single touch shows up as consecutive events. Comparisons use touch onsets. Severalball_hit_worldevents can be reported in one tick, one per contact point (6 at the backboard, 8 at the crossbar).Car speed is clamped to 2300 uu/s at the start of each step, so a recorded speed can read up to 2300 + one tick of boost acceleration (2308.26 uu/s).
A demolished car keeps its last position and a stale velocity in its state while
is_demoedis true.comparetherefore leaves ticks on which either trace marks a car demolished out of that car's error statistics (counted indemoed_ticks_excluded) and treats disagreeing demolition states as divergence.