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
Crawl Editor - BoundariesCrawl Editor InputCrawl Editor Mission Port ToolCrawl Editor PathsCrawl Editor PresetsCrawl Editor Starting PositionsCrawl Editor TrailsCrawl Editor Waypoints

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 ExtensionseditorcrawlEditor

Crawl Editor Paths

Class-based path and pathnode editor for the Crawl Editor. Manages path creation, node selection, gizmo manipulation, and the ImGui detail panel.

Class-based path and pathnode editor for the Crawl Editor. Manages path creation, node selection, gizmo manipulation, and the ImGui detail panel.


Constructor

local Paths = require('editor/crawlEditor/paths')
local pathEditor = Paths(crawlEditorRef)

Class Methods

MethodSignatureDescription
C:init(crawlEditor)Initialize with parent crawl editor reference
C:setPath(path)Set the active path object
C:selectPathnode(index)Select a pathnode by index
C:getSelectedPathnodeIndex()→ numberReturns selected pathnode index
C:drawPathsList(allPaths, selection)Renders selectable list of paths with Add/Delete
C:drawPathDetail(path)Renders path name, description, file rename, and node list
C:getNewPath()→ tableCreates a new empty path template
C:getNewPathnode()→ tableCreates and appends a new node to the current path
C:findPathnode(mouseInfo, objects)→ table/nilRaycasts to find closest pathnode sphere under mouse
C:tryInsert(mouseInfo)Alt-click inserts a node at midpoint between existing nodes
C:input(mouseInfo)Handles Shift-click (add), Alt-click (insert), click (select)
C:draw(mouseInfo)Updates gizmo, processes input, draws axis gizmo
C:drawPathnodeSelectionIndicators(mouseInfo)Debug-draws spheres, direction arrows, segments between nodes
C:dropToTerrain(pos)→ vec3, boolSnaps position to terrain height

Node Flags

FlagTypeDescription
isRecoveryCheckpointbooleanGreen color indicator, recovery spawn point
isBonusCheckpointbooleanGold color indicator, bonus scoring

Usage Example

local pathEditor = require('editor/crawlEditor/paths')(crawlEditor)
pathEditor:setPath(myPath)
pathEditor:selectPathnode(1)
pathEditor:draw(mouseInfo)

Notes

  • Supports undo/redo via editor.history:commitAction
  • Snap to terrain enabled by default (self.snapToTerrain)
  • Gizmo supports translate and rotate modes
  • Shift-click adds node at mouse position; Alt-click inserts between existing nodes
  • Path rename uses editor_crawlEditor.renameObjectFile

All Class Methods

MethodSignatureDescription
C:init(crawlEditorParam)Initialize with parent crawl editor reference
C:setFields(path)Populate ImGui buffers from path data
C:setPath(pathParam)Set the active path object
C:selectPathnode(index)Select a pathnode by index
C:getSelectedPathnodeIndex()→ numberReturns selected pathnode index
C:setSelectedPathnodeIndex(index)Sets selected pathnode index (calls selectPathnode)
C:drawPathsList(allPaths, selection)Render selectable list with Add/Delete context menu
C:drawPathDetail(path)Full detail panel: name, file rename, description, node list with flags
C:getNewPath()→ tableCreate a new empty path template
C:getNewPathnode()→ tableCreate and append a new node to the current path
C:findPathnode(mouseInfo, objects)→ table/nilRaycast to find closest pathnode sphere under mouse
C:tryInsert(mouseInfo)Alt-click inserts node at midpoint between existing nodes
C:input(mouseInfo)Handle Shift-click (add), Alt-click (insert), click (select)
C:updateTransform()Set gizmo transform from selected pathnode pos/rotation
C:beginDrag()Capture pre-drag state for undo
C:dragging()Handle translate/rotate gizmo interaction
C:dropToTerrain(pos)→ vec3, boolSnap position to terrain height
C:endDragging()Commit undo action, snap to terrain
C:draw(mouseInfo)Main draw loop: gizmo update + input
C:drawPathnodeSelectionIndicators(mouseInfo)Debug-draw spheres, direction arrows, segments between nodes

See Also

  • Crawl Editor - Boundaries - Related reference
  • Crawl Editor Input - Related reference
  • Crawl Editor Mission Port Tool - Related reference
  • World Editor Guide - Guide

Crawl Editor Mission Port Tool

Converts old crawl mission data (bounds.sites.json + race.race.json) into the new modular crawl system (boundary, path, starting position, trail files).

Crawl Editor Presets

Class-based preset and component management for the Crawl Editor. Handles save/load/delete of trails, boundaries, and pathnode presets, plus component-level persistence via `gameplay_crawl_saveSystem`

On this page

ConstructorClass MethodsNode FlagsUsage ExampleNotesAll Class MethodsSee Also