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
Drive Path Editor - PlaybackDrive Path Editor - RecordDrive Path Editor - 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 ExtensionseditordrivePathEditor

Drive Path Editor - Spline Manager

Core data manager for drive path splines. Handles creation, deletion, splitting, joining, flipping, deep copying, serialization/deserialization, vehicle linking, nav graph caching, and geometry update

Core data manager for drive path splines. Handles creation, deletion, splitting, joining, flipping, deep copying, serialization/deserialization, vehicle linking, nav graph caching, and geometry updates (free mode + nav graph mode).


Public API

FunctionSignatureDescription
M.getToolPrefixStr() → stringReturns "Drive Path Spline"
M.getEditModeKey() → stringReturns "drivePathSplineEditMode"
M.getDrivePathSplines() → tableReturns all drive path splines
M.getSplineMap() → tableReturns UUID → index map
M.setDrivePathSpline(spline, idx)Sets spline at index, marks dirty
M.setDrivePathSplines(splines)Replaces all splines
M.computeActiveVehicles()Scans scene for active vehicles, populates internal list
M.getActiveVehicles(isForce) → tableReturns scene vehicles (recomputes if forced)
M.getVehicleById(vid) → table|nilFinds vehicle by ID
M.getNavGraph() → table|nilReturns cached nav graph data (nodes, widths, lines)
M.getDefaultSliderParams() → tableReturns default property values for UI sliders
M.resetGeometry(spline)Clears all geometry arrays, marks dirty
M.addNewDrivePathSpline()Creates new spline with defaults, updates map
M.removeDrivePathSpline(idx)Removes spline at index, updates map
M.removeAllDrivePathSplines(isIncludeDisabled)Removes all (or only enabled) splines
M.splitDrivePathSpline(splineIdx, nodeIdx)Splits spline at node (loop unwrap or two halves)
M.joinDrivePathSplines(idx1, node1, idx2, node2)Joins two splines at endpoints
M.flipSpline(spline)Reverses node order and all per-node arrays
M.deepCopyDrivePathSpline(spline) → tableDeep copies a single spline
M.deepCopyDrivePathSplineState() → tableDeep copies all splines
M.singleSplineEditUndo(data)Undo handler for single spline edits
M.singleSplineEditRedo(data)Redo handler for single spline edits
M.transSplineEditUndo(data)Undo handler for multi-spline operations
M.transSplineEditRedo(data)Redo handler for multi-spline operations
M.updateDirtyDrivePathSplines(isBarsLimits)Updates geometry for all dirty splines
M.convertPathsToDrivePathSplines(paths)Imports traced bitmap paths as splines
M.serializeDrivePathSpline(spline) → tableSerializes spline to plain table
M.deserializeDrivePathSpline(data) → tableDeserializes spline from plain table
M.resetVehiclePose(spline, vehicle)Positions vehicle at spline starting node
M.linkSpline(spline, vehicle)Links spline ↔ vehicle
M.unlinkSpline(spline, vehicle)Unlinks and restores cached vehicle pose
M.relinkAllVehiclesToSplines()Re-establishes all vehicle links after deserialization

Spline Data Structure

{
  name = "Drive Path Spline 1",
  id = "<UUID>",
  isDirty = true,
  isEnabled = true,
  isFreeMode = true,
  isVehicleLink = false,
  linkVehId = nil,

  -- Primary geometry
  nodes = {vec3, ...},    widths = {num, ...},
  nmls = {vec3, ...},     vels = {num, ...},
  velLimits = {num, ...},

  -- Secondary (computed) geometry
  divPoints = {}, divWidths = {}, tangents = {},
  binormals = {}, normals = {}, discMap = {},
  ribPoints = {}, barPoints = {},

  -- NavGraph mode
  graphNodes = {}, graphPath = {},

  -- Properties
  delayTime = 0.0, routeSpeed = 31.3, aggression = 0.3,
  numLaps = 1, isLoop = false, startingNode = 1,
  isRouteSpeedLimit = false, isAvoidCars = true, isDriveInLane = true,
}

Dependencies

ModulePurpose
editor/toolUtilities/geomCatmull-Rom, bar points, ribbon geometry
editor/toolUtilities/utilID maps, unique names, raycasting, array copy

Functions

computeActiveVehicles()

Computes active vehicles.

singleSplineEditUndo(drivePathSplineData)

Handles single spline edit undo.

  • drivePathSplineData (any)

singleSplineEditRedo(drivePathSplineData)

Handles single spline edit redo.

  • drivePathSplineData (any)

transSplineEditUndo(data)

Handles trans spline edit undo.

  • data (table)

transSplineEditRedo(data)

Handles trans spline edit redo.

  • data (table)

See Also

  • Drive Path Editor - Playback - Related reference
  • Drive Path Editor - Record - Related reference
  • World Editor Guide - Guide

Drive Path Editor - Record

Records a vehicle's driven path into a new drive path spline. Samples position and velocity at a fixed interval, deduplicates close nodes, applies RDP simplification, and links the result to the recor

Dynamic Decals - Browser

Central browser window for the dynamic decals tool. Provides a tabbed interface where other modules (Textures, Brushes, Fonts) can register their own tabs. Assets can be dragged and dropped from brows

On this page

Public APISpline Data StructureDependenciesFunctionscomputeActiveVehicles()singleSplineEditUndo(drivePathSplineData)singleSplineEditRedo(drivePathSplineData)transSplineEditUndo(data)transSplineEditRedo(data)See Also