RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

bananabench-async Referencebananabench-csv Referencebananabench-json Referencebananabench-print Referencebananabench-xml Referencebananabench Referencebenchphysics ReferenceBeamConsole Folder Overviewjson-performance Referencemain Referenceresave-pcs Referenceservertests Referencesimpleload Referencesimtest Referencetest_dyncol Referencetest Referenceunittests Reference

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

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 output

Internal Notes

  • Uses newVehicle() API (different from BeamEngine:spawnObject)
  • Spawns at vec3(0, 0, 0.1) - slightly above ground
  • Sets BeamEngine.enabled = true explicitly
  • Update timestep: 1/2000 for 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.

On this page

Functions/Exportstest(n) (global)UsageInternal Notes