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
Vehicle Editor - Toolbar
Adjustable Tech Car TunerAero DebugCrash TesterFlexbody DebugGeneral DataJBeam PickerVehicle Editor - Lights DebugVehicle Editor - Node Triangle Self Collision DetectorVehicle Editor - Powertrain InspectorVehicle Editor - Prop TransformerVehicle Editor - Raw Vehicle DataVehicle Editor - TCS DebugVehicle Editor - Vehicle SpawnerVehicle Editor - Scene View

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 ExtensionseditorvehicleEditorliveEditor

Vehicle Editor - Scene View

Creates and manages multiple auxiliary scene views (render views) attached to the vehicle, supporting orthographic projections (left/right/front/back/top/bottom) and free 3D camera mode.

Creates and manages multiple auxiliary scene views (render views) attached to the vehicle, supporting orthographic projections (left/right/front/back/top/bottom) and free 3D camera mode.


Module Exports

ExportTypeDescription
M.addSceneViewfunctionCreates or shows a scene view window
M.onEditorGuihookRenders all scene view windows
M.onEditorHeadlessChangehookInitializes/unloads views on editor mode change
M.onEditorInitializedhookLoads saved view configurations

Key Internals

VariableTypePurpose
sceneViewstableAll scene view data, indexed by ID
renderMainBoolPtrToggle for main scene rendering
editorInitbooleanPrevents double initialization

Per-View Data

FieldTypePurpose
modestring'3d', 'left', 'right', 'front', 'back', 'top', 'bottom'
posvec3Camera position
rotquatCamera rotation
fovFloatPtrField of view
nearClip / farClipFloatPtrClipping planes
orthoBoolPtrOrthographic projection toggle
attachToObjectBoolPtrLock camera to player vehicle
editorIconsVisibleBoolPtrShow editor icons in view
dragOffsetvec3User pan offset
controlRenderViewControlImGui render view control object

How It Works

  • Views are created via ImguiRenderViewControl.getOrCreate() and rendered as ImGui images
  • Each orthographic mode sets camera position relative to the focused vehicle with grid overlay
  • Mouse dragging pans the view; scroll wheel zooms (adjusts FOV in ortho, moves camera in 3D)
  • Settings are persisted via World Editor preferences (vehicleEditor.veView.sceneViews)
  • Right-click context menu allows mode switching, clip/FOV adjustment, and view management

Lua Code Example

-- Add a new scene view
extensions.editor_vehicleEditor_liveEditor_veView.addSceneView()

-- Views support 7 modes: 3d, left, right, front, back, top, bottom
-- Orthographic views automatically:
--   - Set nearClip=0.6, farClip=100, fov=150
--   - Position camera at fixed offset from vehicle
--   - Draw a reference grid via _drawgrid()

-- 3D mode uses the main camera position/rotation:
-- view.pos = core_camera.getPosition()
-- view.rot = core_camera.getQuat()

-- Orthographic modes track the focused vehicle:
-- focusObj = getPlayerVehicle(0)
-- focusRot = quat(focusObj:getRefNodeRotation())
-- focusPos = focusObj:getPosition() + focusRot * view.dragOffset

-- Grid is drawn with 0.25m spacing, colored lines every 1m and 2m:
-- _drawgrid(gridSize=5, rot, gridOrigin, width=0.5)

-- Render view construction:
-- view.control = ImguiRenderViewControl.getOrCreate(wndName)
-- view.control.renderView.cameraMatrix = mat
-- view.control.renderView.resolution = Point2I(w, h)
-- view.control.renderView.frustum = Frustum.construct(ortho, fov, aspect, near, far)
-- view.control:draw()

-- Context menu (right-click) supports:
-- - Mode switching (3D, Left, Right, Front, Back, Top, Bottom)
-- - Ortho toggle with auto clip/fov adjustment
-- - Render Main toggle (setRenderWorldMain)
-- - Attach to Object toggle
-- - Near/Far clip and FOV sliders
-- - Add/Delete view

-- Settings saved to World Editor preferences:
-- editor.setPreference("vehicleEditor.veView.sceneViews", viewsSerialized)

See Also

  • Adjustable Tech Car Tuner - Related reference
  • Aero Debug - Related reference
  • Crash Tester - Related reference
  • World Editor Guide - Guide

Vehicle Editor - Vehicle Spawner

Tool for spawning and despawning multiple vehicles at specified positions within the Vehicle Editor, with interactive location picking via raycast.

Vehicle Editor - JBeam Beautifier

Reformats JBeam files by aligning table columns within selected sections (nodes, beams, triangles, etc.) using AST-level manipulation, with optional number rounding.

On this page

Module ExportsKey InternalsPer-View DataHow It WorksLua Code ExampleSee Also