RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

AI Module ReferenceBackwards Compatibility Module ReferenceBdebug Module ReferenceBdebugImpl Module ReferenceBeamstate Module ReferenceBullettime Module ReferenceController Module ReferenceDamageTracker Module ReferenceDrivetrain Module ReferenceElectrics Module ReferenceElectrics Custom Value ParserEnergyStorage Module ReferenceExtensions Module ReferenceFire Module ReferenceVehicle Engine True GlobalsGuihooks Module ReferenceGUI Streams Module ReferenceHTML Texture Module ReferenceHydros Module ReferenceInput Module ReferenceJBeam-Lua Integration GuideMapmgr Module ReferenceMaterial Module ReferenceBeamNG Math & Unit Conversions Referenceobj (Vehicle C++ Object)PartCondition Module ReferenceParticlefilter Module ReferenceParticles Module ReferencePowertrain Module ReferenceVehicle Property & Module TreeProps Module ReferenceProtocols Module ReferenceRecovery Module ReferenceScriptAI Module ReferenceSensors Module ReferenceSounds Module ReferenceStreams Module ReferenceThrusters Module Reference`v` (Vehicle Data & JBeam)Wheels Module Reference
Tech Utilities OverviewTech Vehicle Utilities

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 Referencevetech

Tech Vehicle Utilities

Module defined in `lua/vehicle/tech/techVehicleUtils.lua`. Provides low-level physical analysis of the vehicle structure.

Module defined in lua/vehicle/tech/techVehicleUtils.lua. Provides low-level physical analysis of the vehicle structure.

Exports

Functions

computeMassProperties(withoutWheels) (callable)

  • Arguments: withoutWheels (boolean): Whether to exclude wheel nodes from calculation.
  • Description: Computes the vehicle's total mass, Center of Gravity (COG), and inertia tensor about the COG. Returns a table with mass, center_of_gravity, and inertia (x, y, z, xy, xz, yz).

getRefNodes() (callable)

  • Description: Returns a table of the current vehicle's reference node names (ref, back, left, up, leftCorner, rightCorner).

getNodeCache() (callable)

  • Description: Generates and returns a cache containing a name-to-CID map and a list of all node CIDs.

getNodeInfo(nodeCache, requestedNodesList) (callable)

  • Arguments: nodeCache (table): Cache from getNodeCache. requestedNodesList (table, optional): List of names or CIDs to query.
  • Description: Returns detailed information (name, CID, mass, absolute position) for the requested nodes.

Related

  • obj Binding: Used to retrieve absolute node positions and masses.
  • v Global: Source of raw JBeam node data.

Tech Utilities Overview

The `tech/` directory (at the top-level of `lua/vehicle/`) provides specialized utility functions for advanced vehicle analysis, often used by external research tools or the Tech sensor suite.

cdefDebugDraw Reference

Module defined in `lua/common/cdefDebugDraw.lua`. Defines FFI C definitions for debug drawing primitives (spheres, cylinders, lines, text, triangles) used by the engine's debug visualization system.

On this page

ExportsFunctionscomputeMassProperties(withoutWheels) (callable)getRefNodes() (callable)getNodeCache() (callable)getNodeInfo(nodeCache, requestedNodesList) (callable)Related