API Referenceconsole
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.
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.
Functions/Exports
test(n) (global)
Runs n physics update steps. Timing output is commented out.
Usage
beamng -console lua/console/test_dyncol.lua
# Spawns pickup, runs 5000 physics stepsInternal Notes
- Uses
newVehicle()API, spawns atvec3(0, 0, 0.1) - Has commented-out code for spawning multiple vehicles (hatch + second pickup at different heights)
- Has commented-out
getSlotCount()vehicle count check - 5000 steps = 2.5 seconds of simulation at 2000 FPS
- Per-step timing is commented out (long-running endurance test)
- Auto-executes
test(5000)on load