API Referencevejbeam
JBeam System Overview
The `jbeam/` directory contains the logic for parsing, compiling, and pushing JBeam data to the physics engine.
The jbeam/ directory contains the logic for parsing, compiling, and pushing JBeam data to the physics engine.
Core Modules
- Stage 2 Loader: The main interface for finalizing vehicle data and committing it to the physics core.
Data Flow
- Stage 1 (GE Context): JBeam files are read from disk and merged into a single large table.
- Stage 2 (Vehicle Context): The
vglobal (linked tojbeam/stage2.lua) processes the merged table. - Commit: Data is pushed to the C++ core via the
objbinding.
Vehicle Editor Nodes
Support functions for the in-game JBeam node editor. Provides node selection, manipulation, and visualization tools for real-time vehicle structure editing.
JBeam Stage 2 Loader
Module defined in `lua/vehicle/jbeam/stage2.lua`. This is the primary interface for committing JBeam data to the C++ physics engine. In the vehicle VM, this module is exposed via the global `v`.