RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Master Spline - Auto Road GenerationMaster Spline - HomologationMaster Spline - Jump TablesMaster Spline - Layer ManagerMaster Spline - Spline Manager

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 ReferenceGE ExtensionseditormasterSpline

Master Spline - Layer Manager

Manages the layer system for master splines. Each layer represents a linked child spline (mesh, assembly, decal, or road) with lateral offset, flip, and width-tracking options.

Manages the layer system for master splines. Each layer represents a linked child spline (mesh, assembly, decal, or road) with lateral offset, flip, and width-tracking options.


Public API

FunctionSignatureDescription
M.getSliderDefaults() → tableReturns default slider values for UI controls
M.deepCopyLayer(layer) → tableDeep copies a single layer
M.deepCopyAllLayers(layers) → tableDeep copies an array of layers
M.updateAllLayers(masterSpline)Updates geometry for all layers
M.updateOnlyDirtyLayers(masterSpline)Updates geometry only for dirty layers
M.removeLayer(idx, masterSpline)Removes layer at index and its linked spline
M.removeAllLayers(masterSpline)Removes all layers and their linked splines
M.addNewLayer(spline)Adds a new default layer to the spline
M.serializeLayer(layer) → tableSerializes a layer to a plain table
M.deserializeLayer(data) → tableDeserializes a layer from a plain table

Slider Defaults

ParameterDefaultDescription
defaultLateralPosition0.0Lateral offset from spline center
defaultDOI70.0Domain of influence
defaultTerraMargin5.0Terraform margin
defaultTerraFalloff1.5Terraform falloff
defaultBankStrength0.5Auto-banking strength
defaultAutoBankFalloff0.6Auto-banking falloff

Layer Data Structure

{
  name = "Layer 1",
  id = "<UUID>",
  isDirty = true,
  isLink = false,
  linkType = "Mesh Spline",     -- tool prefix string
  linkedSplineId = "<UUID>",
  linkedSplineName = "...",
  isFlip = false,               -- reverse direction
  isTrackWidth = false,          -- track master width
  position = 0.0,               -- lateral offset [-1, 1]
}

Layer Update Pipeline

  1. Laterally offset discretized points using layer.position and binormals
  2. Apply RDP simplification to reduce point count
  3. Optionally flip geometry if layer.isFlip is true
  4. Send simplified geometry to linked spline via linkUpdateJumpTable

Dependencies

  • editor/meshSpline/splineMgr
  • editor/assemblySpline/splineMgr
  • editor/decalSpline/splineMgr
  • editor/roadSpline/groupMgr
  • editor/toolUtilities/rdp

See Also

  • Master Spline - Auto Road Generation - Related reference
  • Master Spline - Homologation - Related reference
  • Master Spline - Jump Tables - Related reference
  • World Editor Guide - Guide

Master Spline - Jump Tables

Utility module containing jump tables (dispatch maps) for fast cross-tool operations between the Master Spline and compatible linked spline tools (Mesh, Assembly, Decal, Road splines).

Master Spline - Spline Manager

Core data management module for the Master Spline tool. Handles creation, deletion, serialization, undo/redo, splitting, joining, linking, and dirty-state updates for all master splines.

On this page

Public APISlider DefaultsLayer Data StructureLayer Update PipelineDependenciesSee Also