RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference
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

Camera Reference

Module defined in `lua/common/jbeam/sections/camera.lua`. Processes camera definitions from JBeam data, handling onboard, relative, and onboard2 camera types with retrocompatibility upgrades.

Module defined in lua/common/jbeam/sections/camera.lua. Processes camera definitions from JBeam data, handling onboard, relative, and onboard2 camera types with retrocompatibility upgrades.


Exports

Functions

M.process(objID, vehicle)

Processes the cameras section of vehicle data. Handles retrocompatibility upgrades (old camera names → new), processes onboard cameras (resolving node positions, applying node transforms), relative cameras, and onboard2 cameras. Cleans camera data to minimize message size.

  • Parameters:
    • objID - number - Vehicle object ID
    • vehicle - table - Assembled vehicle data with cameras section
  • Returns: self (module table, for chaining)

Internal Notes

  • Only runs on game engine side (vmType == 'game').
  • Camera data cleanup removes: group, firstGroup, partPath, childParts, partName, slotType, collision, selfCollision, nodeWeight, beam properties, cid, skin fields.
  • Processes three camera subtypes: processOnboard (cockpit cameras with node-based positioning), processRelative (chase cameras), processOnboard2 (newer onboard format).
  • Uses jbeamUtils.getPosAfterNodeRotateOffsetMove for node transform application.
  • Retrocompatibility: auto-upgrades old camera section names to current format via upgradeCamera.

Assorted Reference

Module defined in `lua/common/jbeam/sections/assorted.lua`. Post-processes miscellaneous vehicle sections: engine water damage node groups and soundscape table restructuring.

Colors Reference

Module defined in `lua/common/jbeam/sections/colors.lua`. Applies vehicle color configuration from legacy color format to the 3D vehicle object.

On this page

ExportsFunctionsM.process(objID, vehicle)Internal Notes