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#

LocationFilesNotes
scenarios/118: ball/ 37, car/ 59, car-ball/ 8, car-car/ 4, advanced/ 8, void/ 2the 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/ and car-ball/ and the five a02-* have been captured; the three a01-* run but aren't captured yet. car-car/ needs a second car and void/ 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 example just car-suite 1 "car-jump-*" or just car-suite 1 "*" scenarios/car-ball.

  • Exported episodes are scenarios too: any RL episode can be saved as one, and just watch writes them to tmp/watch/ (Watching bots).

  • Training task files in tasks/ are not scenarios; they have their own schema (Task file format).

Control timing#

  • capture.warmup_ticks physics steps run first with neutral input for every car. The state after warmup is tick 0, and it is recorded.

  • Tick t is the state after t physics steps counted from tick 0.

  • A control step { "car": c, "start_tick": s, "duration_ticks": d, ... } is the input applied before the step from tick t to t + 1, for every t in s .. s + d. It drives the steps that produce ticks s + 1 ..= s + d. With start_tick: 0 the input already affects tick 1.

  • start_tick counts 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 jump is 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.controls is the input of the step that produced that sample. It is None at tick 0. With every_n_ticks > 1 it is the input of the last step before the sample. Events from skipped steps are still accumulated into the next recorded sample. If duration_ticks is not a multiple of every_n_ticks, the trailing ticks are simulated but not recorded, and the trace carries a warning.

  • CarSample.on_ground and car_landed events in the sample at tick t come from the suspension raycast RocketSim casts at the start of the step t - 1 → t, so they describe the wheel contacts of the pose at tick t - 1 (at tick 0: of the tick-0 pose, probed during setup). A car_landed at tick t therefore means the tick t - 1 pose 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:

json
"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.cars order. A car's index is its id in events and traces. Adding a car consumes arena RNG, which is seeded from seed.

  • 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). boost omitted means RocketSim's spawn boost (33.3). Most car scenarios set boost: 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 for car_pickup_boost events when adding one). The car-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_world event 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's runner.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/)#

IDsIsolates
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-ceilingcorner 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-chaoticlong-horizon drift

Car (scenarios/car/)#

IDSetupIsolates
car-fall-wheels-100, -300, -1000 (C01)upright car released 100 / 300 / 1000 uu above restsuspension, 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 rollthe 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 sengine force, drag, throttle top speed (1410)
car-throttle-reverse (C03)throttle -1 for 3 s from x = 3500reverse force; in RocketSim it mirrors forward exactly
car-throttle-brake (C03)throttle 1 for 2 s, then -1 for 1 sbraking
car-steer-slow / -medium / -fast (C04)pre-roll to ~350 / ~840 / ~1860 uu/s (the last with boost), then steer 1 + throttle 1turning at several speeds
car-steer-medium-left (C04)mirror of medium, starting at y = +2000steer sign symmetry
car-powerslide-medium (C04)steer + handbrake at ~840 uu/shandbrake friction
car-boost-from-rest (C05)boost + throttle for 3 sboost acceleration, supersonic, 2300 cap
car-boost-at-speed (C05)throttle 1 s, then boost 2 sboost from ~1000 uu/s
car-boost-runs-out (C05)boost with 20 in the tankthe tank emptying mid-acceleration
car-jump-tap-1, car-jump-hold-3, -10, -24, -40 (C06)jump held 1 / 3 / 10 / 24 / 40 ticksjump impulse and hold force; 1 ≡ 3 and 24 ≡ 40 in RocketSim
car-double-jump (C06)jump 10 ticks, second press at tick 40double jump
car-air-none (C07)released at z = 1500, no inputfree-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 sair 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 brakessmall pad pickup radius (D4)
car-pad-small-headon-600 / -1000 / -1400 / -2000 (C08)straight over the same pad at 600–2000 uu/spickup timing by speed
car-pad-big-offset-190 … -214 (C08)the same past the big pad at (3584, 0), 190–214 uu to the sidebig pad pickup radius (208)
car-pad-big-headon-1000 / -2000 (C08)straight over the big padpickup 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/)#

IDSetupIsolates
cb01-ball-into-car-front / -side (CB01)car at rest facing +Y; ball rolls into it at 1500 uu/scar–ball impulse on a stationary car
cb01-ball-onto-car-roof (CB01)ball dropped from z = 400 onto the roofvertical car–ball contact
cb02-car-drives-into-ball (CB02)full throttle from 2000 uu awayimpact geometry, speed transfer (touch at ~1200 uu/s)
cb02-car-boosts-into-ball (CB02)the same, boostingfaster 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.

IDSetupIsolates
cc01-car-bumps-stationary-car (CC01)blue drives (throttle only) into the side of a stationary orange carbump impulse (car_hit_car, is_demo: false)
cc01-car-demos-stationary-car (CC01)blue boosts to supersonic firstdemolition (is_demo: true)
cc02-head-on (CC02)both drive at each otherhead-on contact, solver ordering
cc02-oblique-45 (CC02)45° paths that meet simultaneouslyoblique contact without a bump event (see notes)

Advanced (scenarios/advanced/)#

IDSetupIsolates
a01-ball-backboard (A01)ball fired at the orange backboard at z ≈ 1000backboard mesh
a01-ball-backboard-corner (A01)high into the back corner cutcorner mesh
a01-ball-crossbar (A01)upper half of the ball strikes the crossbar edgegoal-frame seam (contact normal ≈ (0, -0.79, -0.61))
a02-jump-front-flip / -back-flip / -side-flip (A02)jump, release, dodge at tick 20dodge impulses and landing
a02-moving-front-flip (A02)front flip at ~1000 uu/sdodge scaling with forward speed
a02-flip-reset-setup (A02)inverted airborne car uses its double jump; a falling ball meets its wheelsflip reset: car_landed on the ball at tick 81, jump flags cleared

Empty arena (void/)#

IDPurpose
void-ball-dropDeterminism check, ball only (the_void, no meshes)
void-car-controlsDeterminism 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_car is emitted only for bumps and demos: the attacker is moving toward a victim inside its front bump cone. Other car–car contacts (for example cc02-oblique-45) deflect the cars without any event.

  • car_hit_ball fires on every tick with contact, so a single touch shows up as consecutive events. Comparisons use touch onsets. Several ball_hit_world events 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_demoed is true. compare therefore leaves ticks on which either trace marks a car demolished out of that car's error statistics (counted in demoed_ticks_excluded) and treats disagreeing demolition states as divergence.