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

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.

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 steps

Internal Notes

  • Uses newVehicle() API, spawns at vec3(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

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

Simulation Test

Script defined in `lua/console/simtest.lua`. Spawns a pickup vehicle and runs a timed physics simulation loop, printing per-step timing.

Main Development Test

Script defined in `lua/console/test.lua`. Main development test file with vehicle loading and JSON parsing test functions.

On this page

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