RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Bananabench AsyncBananabench CSVBananabench JSONBananabench PrintBananabench XMLBananabenchPhysics BenchmarkBeamConsole Folder OverviewJSON PerformanceConsole MainResave Parts ConfigsServer TestsSimple LoadSimulation TestDynamic Collision TestMain Development TestUnit Tests

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

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 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

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.

On this page

Functions/Exportstest(n) (global)UsageInternal NotesSee Also