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 - Boundaries

Sub-module of the Crawl Data Editor handling boundary polygon creation and editing. Provides vertex manipulation with gizmo support, terrain snapping, and undo/redo history.

Sub-module of the Crawl Data Editor handling boundary polygon creation and editing. Provides vertex manipulation with gizmo support, terrain snapping, and undo/redo history.


Module Interface

This module is a class constructor that returns a boundary editor instance:

local boundaries = require('editor/crawlEditor/boundaries')(crawlEditorRef)

Key Methods

MethodDescription
C:init(crawlEditorParam)Initialize with reference to parent crawl editor
C:setBoundary(boundary)Set the currently edited boundary
C:clearSelection()Clear vertex and plane selection

Key Features

  • Vertex Manipulation - Add, remove, and move boundary polygon vertices
  • Gizmo Support - 3D translation gizmo for vertex positioning
  • Terrain Snapping - Option to snap vertices to terrain surface
  • Undo/Redo - Full history support for vertex operations
  • Dirty Tracking - Marks boundaries as dirty when modified

Undo/Redo Actions

ActionDescription
setFieldUndo/RedoRestore/apply field changes (name, vertices)
addVertexUndo/RedoUndo/redo vertex addition
manipulateVerticesUndo/RedoUndo/redo vertex position changes

Internal State

self.boundary = nil           -- Currently edited boundary
self.currentVertices = {}     -- Selected vertex indices
self.currentPlane = nil       -- Editing plane
self._prevGizmoPos = vec3()   -- Previous gizmo position for delta tracking
self._prevVerticesPos = {}    -- Vertex positions before drag
self.snapToTerrain = true     -- Terrain snapping toggle

All Class Methods

MethodSignatureDescription
C:init(crawlEditorParam)Initialize with parent crawl editor reference
C:setFields(boundary)Populate ImGui field buffers from boundary data
C:setBoundary(boundaryParam)Set the currently edited boundary
C:clearSelection()Clear vertex and plane selection
C:drawBoundariesList(allBoundaries, selection)Render selectable list with Add/Delete context menu
C:drawBoundaryDetail(boundary)Full detail panel: name, file rename, vertices, planes, custom fields
C:getNewBoundary()→ zoneCreate a new boundary zone object
C:findVert(mouseInfo, objects)→ table/nilFind closest vertex sphere under mouse ray
C:tryInsert(mouseInfo)Alt-click inserts vertex at midpoint between existing vertices
C:input(mouseInfo)Handle Shift-click (add), Alt-click (insert), click/ctrl-click (select)
C:updateTransform()Set gizmo transform from selected vertices/plane centroid
C:beginDrag()Capture pre-drag state for undo
C:dragging()Handle translate/rotate gizmo interaction for vertices and planes
C:dropToTerrain(pos)→ vec3, boolSnap position to terrain height
C:endDragging()Commit undo action, snap to terrain, reprocess vertices
C:draw(mouseInfo)Main draw loop: gizmo update + input
C:drawBoundaryEditor()Renders boundary detail or "No boundary selected"
C:drawCustomFields(fields)Renders custom string/number/vec3 fields with copy/paste

See Also

  • crawlEditor - Parent crawl data editor tool

Assembly Spline Manager

Central manager for the Assembly Spline tool. Handles spline CRUD operations, undo/redo, presets, serialization, splitting/joining, linking with the Master Spline tool, and dirty-state updates.

Crawl Editor Input

Mouse input handling for the Crawl Editor. Provides raycasting from the camera through the mouse cursor, tracking click/hold/release states with world-space hit positions.

On this page

Module InterfaceKey MethodsKey FeaturesUndo/Redo ActionsInternal StateAll Class MethodsSee Also