RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
ExpressionParser ReferenceGroups ReferenceInteraction ReferenceIO ReferenceLinks ReferenceLoader ReferenceMaterials ReferenceOptimization ReferenceScaling ReferenceSectionMerger ReferenceSlotSystem ReferenceTableSchema ReferenceUtils ReferenceVariables Reference
Assorted ReferenceCamera ReferenceColors ReferenceEvents ReferenceLicensePlatesSkins ReferenceMeshs ReferenceMirror ReferenceNodeBeam ReferencePaints ReferenceVisual Ropes ReferenceWheels 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 Referencecommonjbeamsections

Meshs Reference

Module defined in `lua/common/jbeam/sections/meshs.lua`. Processes 3D mesh attachments: physics triangles, props (animated objects), and flexbodies (deformable meshes).

Module defined in lua/common/jbeam/sections/meshs.lua. Processes 3D mesh attachments: physics triangles, props (animated objects), and flexbodies (deformable meshes).


Exports

Functions

M.process(objID, vehicleObj, vehicle)

Processes three mesh types: triangles (physics collision surfaces), props (rigid animated meshes attached to nodes), and flexbodies (soft-body meshes that deform with the node structure). Creates C++ mesh objects via the vehicle object API.

  • Parameters:
    • objID - number - Vehicle object ID
    • vehicleObj - userdata - C++ vehicle object
    • vehicle - table - Assembled vehicle data with triangles, props, flexbodies sections
  • Returns: self (module table, for chaining)

Internal Notes

  • Triangles: Added via vehicleObj:addPhysicsTriangle(id1, id2, id3). Degenerate triangles (duplicate node IDs) are skipped.
  • Props: Created via vehicleObj:addProp(). Support features:
    • Node-based positioning (ref, x, y nodes)
    • Translation/rotation with translationWorldToPropAxis for coordinate conversion
    • Steering wheel props can be disabled via settings
    • Color application via parseColor (supports RGBA table and hex string #RRGGBBAA)
    • Mesh material override, deformation groups, break groups
    • Rotation order and mode configuration
  • Flexbodies: Created via vehicleObj:addFlexbody(). Support:
    • Node-based deformation (ref, x, y nodes)
    • Position/rotation transforms via jbeamUtils.getFlexbodyPosRotAfterNodeRotateOffsetMove
    • Scale, skin, mesh material
    • Group-based node assignment
  • Props and flexbodies that reference invalid nodes are logged and skipped.

See Also

  • Assorted Reference - Related reference
  • Camera Reference - Related reference
  • Colors Reference - Related reference
  • Common Libraries Overview - Guide

LicensePlatesSkins Reference

Module defined in `lua/common/jbeam/sections/licenseplatesSkins.lua`. Processes license plate and skin setup from active parts data, applying skins to the vehicle object and configuring license plate

Mirror Reference

Module defined in `lua/common/jbeam/sections/mirror.lua`. Processes mirror definitions from JBeam data, creating C++ mirror objects on the vehicle.

On this page

ExportsFunctionsM.process(objID, vehicleObj, vehicle)Internal NotesSee Also