API Referenceconsole
Simulation Test
Script defined in `lua/console/simtest.lua`. Spawns a pickup vehicle and runs a timed physics simulation loop, printing per-step timing.
Script defined in lua/console/simtest.lua. Spawns a pickup vehicle and runs a timed physics simulation loop, printing per-step timing.
Functions/Exports
test(n) (global)
Runs n physics update steps at 2000 FPS, printing the time for each step.
Usage
beamng -console lua/console/simtest.lua
# Spawns pickup, runs 100 physics steps with timing outputInternal Notes
- Uses
newVehicle()API (different fromBeamEngine:spawnObject) - Spawns at
vec3(0, 0, 0.1)- slightly above ground - Sets
BeamEngine.enabled = trueexplicitly - Update timestep:
1/2000for both dt parameters - Runs 100 steps by default, auto-executes
See Also
- BeamConsole Folder Overview - Directory overview
- bananabench-async Reference - Related reference
- bananabench-csv Reference - Related reference
- bananabench-json Reference - Related reference
- Console Commands Guide - Guide
Simple Load
Script defined in `lua/console/simpleload.lua`. Minimal vehicle spawn test - deletes all objects and spawns a single pickup vehicle.
Dynamic Collision Test
Script defined in `lua/console/test_dyncol.lua`. Dynamic collision test - spawns a vehicle and runs 5000 physics steps to test collision behavior over extended simulation.