Simulation accuracy

How closely RocketSim matches the real game, and how we check.

11 min read

Our bots train in RocketSim, so a bot is only as good as RocketSim is accurate. This section shows how we measure RocketSim against the real Rocket League, what we found, and how to add tests.

The short answer: for the ball, RocketSim matches the game on 18,889 of 18,900 single-tick tests, after one patch (P1). Cars match too: jumps, flips, air control, driving and car–ball hits stay within 0.5 uu over whole runs, most within a few hundredths. The exceptions are a car landing exactly flat on a face or edge (D3) and the small boost pads' pickup radius (D4).

ResultValueStatus
First real-game comparison: a ball drop, 240 ticks, 5 capturesmax error 0.005 uu in position, 0.009 uu/s in velocitydone
One-tick replay of the 37-scenario ball suite18,889 of 18,900 steps within one grid steplargely done
Car suite in Free Play: 34 car, 8 car–ball and 5 flip scenariosjumps and air control at the floor; driving, flips and car–ball within 0.05 uu; steering within 0.5 uudone
Real differences foundD1 fixed by patch P1; D2 mostly retracted, 11 steps left; D3 (flat car landings) open; D4 (small pad radius) confirmed
RocketSim's own replay benchmark (real matches), with P191.08% → 91.85% of ticks within tolerance; 92.24% with candidate P2P1 shipped, P2 not vendored
Car–car in the real game, one-tick replay of car capturesFree Play has one car; the car replay isn't builtnot started

How we test accuracy#

We write one experiment, run it in both RocketSim and the real game, and compare the two recordings tick by tick. (A tick is one physics step; the game runs 120 per second.)

  1. Write a scenario. A JSON file (scenarios/**/*.json) sets the arena, the starting ball and car states, the controller inputs and how long to record. Unknown fields are rejected, so a typo can't be silently ignored. just validate checks every file. See the scenario catalog.

  2. Run it in RocketSim. just run <scenario> writes a recording (a trace) to recordings/<id>.rocketsim.jsonl.

  3. Run it in the real game. just real-run <scenario> [repeats] sends the scenario to our BakkesMod plugin, which sets the ball and the car, feeds the car the scenario's inputs, and records both every physics frame. The capture is saved as a trace in the same format. See BakkesMod plugin.

  4. Compare. just compare <real> <sim> lines the traces up by exact tick number and never shifts one to make it fit. It reports error statistics, the error at fixed horizons (1 to 1800 ticks), the first tick where position error passes 1 uu, and whether contacts happen on the same ticks. The Command Center charts every real-vs-sim pair.

  5. Replay one tick at a time. just real-fidelity sets each real tick in RocketSim and steps it once, so errors can't compound. Any mismatch is a real one-tick physics difference.

  6. Check the measurement is stable. Repeat real captures (just real-repeatability <id>); every repeat so far is identical. just determinism checks that RocketSim reproduces itself exactly.

Running the real-game harness#

Windows only.

  1. Build and install the plugin: just plugin-install. If the game is running, restarting it is the safe way to pick up the new build. Unloading the plugin once crashed the game; unloading and reloading it while idle has worked since.

  2. Launch without anti-cheat. Since 2026-04-28 BakkesMod only works with Easy Anti-Cheat (EAC) off. Start BakkesMod, then launch Rocket League from the Epic Games Launcher with its launch-without-EAC option (or Launch Options -noeac). just rl-check confirms EAC is off. Running Launcher.exe -noeac directly doesn't work. just rl-launch (through Legendary, after a one-time just rl-login) is untested.

  3. Load the plugin and enter Free Play: just rl-console plugin load physlab. For car scenarios, drive a car with the Octane hitbox (the Octane or the Fennec).

  4. Check tick timing on this game build: just real-probe.

  5. Capture and compare:

    sh
    just real-run scenarios/ball/ball-drop-center-500.json 5   # 5 real captures -> recordings/
    just real-compare ball-drop-center-500                     # each capture vs the RocketSim trace
    just real-repeatability ball-drop-center-500               # captures vs each other
    just m1                                                    # all of the above end to end
    just ball-suite 3                                          # every ball scenario, 3 captures each
    just real-fidelity "ball-ramp-*"                           # one-tick replay
    just car-suite 1 "car-jump-*"                              # car scenarios, with a summary table
    just car-suite 1 "*" scenarios/car-ball                    # every car–ball scenario

    Keep your hands off the controller during ball-only captures. In car scenarios the plugin replaces the car's input, so the controller doesn't matter.

Keeping the two runs in sync#

Two traces only compare if both start from the same state, apply inputs on the same ticks and record at the same point in the tick. This is the biggest risk in the method, so it's measured, not assumed:

  • Tick timing. just real-probe records which game hooks fire when. On build 261001.2867.529371 the hook Car_TA.SetVehicleInput fires exactly once per physics frame, before the step, so the plugin uses it. Run the probe once per game build.

  • Frame counting. The plugin records by the engine's physics-frame counter, so duplicate or skipped frames are caught. The importer checks the frames are contiguous.

  • Car inputs. The plugin replaces the car's input in that same pre-step hook, and the importer checks that the input the game stored equals the scenario's on every step. During a run the car uses RocketSim's controller settings, not the player's.

  • The car's first step. Right after a teleport the game keeps the car's old wheel contacts, and RocketSim's runner used to drop them. The plugin lets the game step once at the starting pose before it starts counting, and the runner seeds RocketSim's contacts from the pose.

Details: BakkesMod plugin → Capture protocol.

The measurement floor#

Both the game and RocketSim round the ball's and the cars' state onto a fine grid every tick (0.01 uu for position). Our captures see the rounded state, so even identical physics shows up to about 0.005 uu of error per tick. That error doesn't grow. Two ways around it:

  • Long runs. A real physics difference compounds into a clearly different end state. Ball scenarios run up to 15 s, car scenarios up to 4 s.

  • Round RocketSim the same way. The one-tick replay applies the game's rounding to RocketSim, so identical physics agrees to within one grid step.

Details: Sim vs real differences → Measurement floor.

Results#

  • First comparison. ball-drop-center-500 captured 5 times (game build 261001.2867.529371, BakkesMod 228) against RocketSim 0.2.11: max error 0.005 uu and 0.009 uu/s over 240 ticks, floor contact on tick 136 in both, all 5 captures identical. Both errors are below the measurement floor.

  • The ball suite. 37 scenarios up to 15 s: drops, wall and ceiling hits, spin, rolls, the curved ramp between floor and wall, and a chaotic 15 s run (list). Replayed one tick at a time, every step matches except 11 of the 243 that touch two or more ramp facets, mostly at seams between the arena's mesh pieces.

  • Matching the game: gravity and drag in flight, floor bounces, wall, ceiling and corner contacts, spin–floor friction, the 6 rad/s spin cap, the switch from sliding to rolling, and the rest height.

  • The car suite. 34 car scenarios, 8 car–ball and 5 flips, 1–3 captures each; repeats are bit-identical. Maximum position error over the whole run:

    • At the floor (≤ 0.006 uu): air control, wheels-down falls, every jump and the double jump, with landings on the same tick.

    • Driving and boost: ≤ 0.025 uu over up to 4 s. Steering and powerslide ≤ 0.09 uu, car-steer-fast 0.5 uu.

    • Falls where one corner lands first: ≤ 0.03 uu through impact and tumbling.

    • Car–ball: all 8, car ≤ 0.043 uu and ball ≤ 0.023 uu.

    • Flips: front, back, side and moving front flip ≤ 0.034 uu, orientation within 4e-4 rad, landings on the same tick. In the flip-reset setup the car lands its wheels on the ball on tick 81 in both.

  • Boost pads. 25 scenarios drive past a pad at fixed offsets or straight over it. Big pads match RocketSim's 208 uu radius. Small pads give boost up to about 176 uu away, where RocketSim stops at 144 (D4).

  • Not matching: a car that hits the floor exactly flat on a face or edge (D3), and small boost pads (D4).

IDDifferenceOutcome
D1RocketSim rounded spin on a grid 50× finer than the game's, so a rolling ball slowed slightly lessfixed by P1
D2Contacts touching several ramp facets. First reported as a physics difference; it was a bug in our replay tool. 11 steps remainmostly retracted, no patch
D3A car landing exactly flat on a face or edge: the game and RocketSim resolve the contact as mirror images, up to ~110 uu apart afterwards. Tilt it so one corner lands first and they matchopen, no patch
D4Small boost pads give boost from about 176 uu in the game, 144 uu in RocketSimconfirmed, candidate patch P2

Evidence, reproduction steps, and the hypotheses we tested and rejected are on Sim vs real differences.

Patches on top of RocketSim#

We change RocketSim only when a scenario reproduces a difference from the real game, repeated captures agree, and RocketSim's history shows the behaviour wasn't intentional. One patch exists, and one candidate:

  • P1 rounds spin onto the game's 1e-4 rad/s grid. On 10 s rolling runs it cuts the end error from up to 6.59 uu to under 0.02 uu, and it lifts RocketSim's own real-match benchmark from 91.08% to 91.85%.

  • P2 (candidate, not vendored) would raise the small boost pad radius from 144 to 176 uu. It lifts the real-match benchmark from 91.85% to 92.24%.

How patches are wired in, how to test a new one, and the rejected candidates: RocketSim patches.

Adding test scenarios#

  1. Copy a similar file in scenarios/<category>/ and give it a unique id. Units are in the field names; the axes are RocketSim's (Coordinate systems).

  2. Pick the arena. "mode": "soccar" is the real arena and needs the collision meshes. "mode": "the_void" is empty: it runs without meshes, but only in the simulator.

  3. Script the inputs. Each control step sets inputs for a range of ticks; outside them, input is neutral. jump reacts to presses, so two jumps need a gap. Rules: Control timing.

  4. Validate with just validate. It reports every problem at once.

  5. Run it in RocketSim (just run …), then watch it in 3D with just view.

  6. Run it in the real game if the runner supports it: just real-run … 3, then just real-compare <id>.

  7. Add it to the catalog.

A good scenario isolates one effect. Vary height, angle, speed, orientation and starting point, and stay away from mesh seams until you test seams on purpose.

Coverage today and what's missing#

118 scenarios exist, and 109 of them have been run in the real game. The rest run in RocketSim only.

AreaScenariosReal-game capturesStatus
Ball vs arena37 (scenarios/ball/)all 37done
Ball vs backboard, corner, crossbar3 (a01-*)none yet (the runner accepts them)not started
Car physics: falls, driving, steering, boost, jumps, air control34 (scenarios/car/)all 34; four flat landings show D3done
Boost pad pickups, small and big25 (scenarios/car/car-pad-*)all 25; small pads show D4done
Car–ball impacts8 (scenarios/car-ball/)all 8done
Car–car bumps, demos, collisions4 (scenarios/car-car/)Free Play has only one carnot started
Dodges, flips, flip reset5 (a02-*)all 5done
Ball pinched between car and floor or wallnonenonenot started

Next#

  • Replay car captures one tick at a time. RocketSim's state has to be capped and quantized first (why).

  • Detect car–ball touches in real captures. Today matching ball states are the evidence.

  • Confirm P1's grid on car spin directly.

  • Car–car needs a second car: a local match or bots, to be checked first.

  • D3: investigate further only if it matters for training.

  • D4: vendor P2 once the training environment's replay tests can be re-exported.

Pages in this section#