Visual Ropes Reference
Module defined in `lua/common/jbeam/sections/vropes.lua`. Processes visual rope definitions from JBeam data, creating rendered rope objects attached between props.
Module defined in lua/common/jbeam/sections/vropes.lua. Processes visual rope definitions from JBeam data, creating rendered rope objects attached between props.
Exports
Functions
M.process(objID, vehicleObj, vehicle)
Processes the vropes section, creating visual rope objects connecting two prop anchor points. Configures rope appearance (radius, color, segments, material) and physics behavior (slack, gravity, spring/damp).
- Parameters:
objID- number - Vehicle object IDvehicleObj- userdata - C++ vehicle objectvehicle- table - Assembled vehicle data withvropesandpropssections
- Returns:
self(module table, for chaining)
Internal Notes
- Ropes are anchored to props by name via
findPropIdByName, which searchesvehicle.propsfor matchingnamefield. - Visual rope properties:
dirA/dirB: direction vectors (defaultvec3(0,0,-1))radius: rope thicknesscolor: RGBA colorsegments: subdivision countmaterial: rendering materialslack: rope loosenessgravity: gravity multiplierspring/damp: physics simulation parameters
- Created via
createRopeVisual()/getRopeVisual(id)global functions. - Prop anchors use
vehiclePropIdA/vehiclePropIdB(prop CIDs).
Paints Reference
Module defined in `lua/common/jbeam/sections/paints.lua`. Applies the metallic paint system to the vehicle object from configuration.
Wheels Reference
Module defined in `lua/common/jbeam/sections/wheels.lua`. Constructs wheel geometry (nodes and beams) from JBeam wheel definitions. The largest file in the jbeam subsystem (~2000 lines).