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 Starting Positions

Class-based starting position editor for the Crawl Editor. Manages area transform (position, rotation, radius), icon position, and placement with Ctrl-drag rotation.

Class-based starting position editor for the Crawl Editor. Manages area transform (position, rotation, radius), icon position, and placement with Ctrl-drag rotation.


Constructor

local SP = require('editor/crawlEditor/startingPositions')
local spEditor = SP()

Class Methods

MethodSignatureDescription
C:init()Initialize state (snapToTerrain enabled)
C:setStartingPosition(sp)Set the active starting position
C:setFields(sp)Populate ImGui field buffers from starting position
C:clearSelection()Clear the current transform selection
C:drawStartingPositionsList(allSPs, selection)Render selectable list with Add/Delete
C:drawStartingPositionDetail(sp)Render name, filename, description, position, rotation, radius, icon
C:getNewStartingPosition()→ tableCreate default starting position template
C:input(mouseInfo)Handle Shift-click (place icon), Ctrl-drag (place+rotate area), click (select area/icon)
C:draw(mouseInfo)Process input, draw rotation preview, manage gizmo
C:drawStartingPositionIndicators(mouseInfo)Debug-draw area sphere, center point, icon sphere, direction arrow, labels
C:dropToTerrain(pos)→ vec3, boolSnap position to terrain

Starting Position Structure

{
  name = "Start",
  description = "...",
  transform = {
    position = vec3(0, 0, 0),
    rotation = quat(1, 0, 0, 0),
    radius = 4.0
  },
  iconPosition = vec3(0, 0, 0),
  metadata = { created = "...", version = "1.0" }
}

Interaction Modes

InputAction
Shift + ClickPlace icon position at mouse hit point
Ctrl + Click & DragPlace area position, drag to set rotation facing
ClickSelect area or icon transform for gizmo

Notes

  • Two selectable transforms: "area" (position/rotation/radius) and "icon" (position only)
  • Gizmo supports translate and rotate for area, translate-only for icon
  • Selection radius scales with camera distance for consistent picking
  • Undo/redo via editor.history:commitAction with setTransformUndo/Redo and setFieldUndo/Redo
  • Direction arrow drawn using Y-forward convention (BeamNG standard)

All Class Methods

MethodSignatureDescription
C:init()Initialize state
C:setFields(startingPosition)Populate ImGui buffers from starting position
C:setStartingPosition(sp)Set the active starting position
C:clearSelection()Clear current transform selection
C:drawStartingPositionsList(allSPs, selection)Render selectable list with Add/Delete
C:drawStartingPositionDetail(sp)Full detail: name, file rename, description, transform, icon position
C:getNewStartingPosition()→ tableCreate default starting position template
C:input(mouseInfo)Handle Shift-click (icon), Ctrl-drag (place+rotate), click (select)
C:updateTransform()Set gizmo transform from area or icon position
C:beginDrag()Capture pre-drag state
C:dragging()Handle translate/rotate gizmo interaction
C:dropToTerrain(pos)→ vec3, boolSnap position to terrain height
C:endDragging()Commit undo action
C:draw(mouseInfo)Process input, draw rotation preview, manage gizmo
C:drawStartingPositionIndicators(mouseInfo)Debug-draw area sphere, icon, direction arrow, labels

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

Crawl Editor Trails

Class-based trail editor for the Crawl Editor. Trails are the top-level objects that link paths, boundaries, starting positions, and prefabs together.

On this page

ConstructorClass MethodsStarting Position StructureInteraction ModesNotesAll Class MethodsSee Also