API Referenceconsole
simtest Reference
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
simpleload Reference
Script defined in `lua/console/simpleload.lua`. Minimal vehicle spawn test - deletes all objects and spawns a single pickup vehicle.
test_dyncol Reference
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.