RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Activity ManagerAudio Bank ManagerAudio Ribbon SystemBus Route ManagerCamera SystemCore Chat (IRC)Core CheckpointsCore Command HandlerCoupler Camera ModifierDevices (RGB Peripherals)Dynamic PropsEnvironmentFlowgraph ManagerForestFun StuffGame ContextGame StateGround Marker ArrowsGround MarkersHardware InfoHighscoresHotlappingInventoryJob SystemLap TimesLevelsLoad Map CommandMetricsMod ManagerMultiseatMultiseat CameraMulti SpawnOnlinePaths (Camera Paths)Quick Access (Radial Menu)Recovery PromptRemote ControllerReplayRepositoryRope Visual TestScheme Command ServerCore SnapshotCore SoundsCore TerrainTraffic SignalsTrailer RespawnVehicle Active PoolingVehicle Bridge (GE ↔ VLua Communication)Vehicle MirrorsVehicle PaintsCore VehiclesVehicle TriggersVersion UpdateWeather SystemWindows Console
Camera Mode: AutopointCamera Mode: AutozoomCamera Mode: Big MapCamera Mode: ChaseCamera Mode: CollisionCamera Mode: CrashCamera Mode: DriverCamera Mode: External / Fan CameraCamera Mode: FallbackCamera Mode: Free CameraCamera Mode: Game EngineCamera Mode: HandheldCamera Mode: Manual ZoomCamera Mode: NoiseCamera Mode: ObserverCamera Mode: OnboardCamera Mode: OrbitCamera Mode: Pacenote OrbitCamera Mode: PathCamera Mode: PredictorCamera Mode: RelativeCamera Mode: ShakeCamera Mode: SmoothCamera Mode: Top DownCamera Mode: TrackIRCamera Mode: TransitionCamera Mode: Unicycle

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 ExtensionscorecameraModes

Camera Mode: Game Engine

Final-stage camera filter that commits the computed camera state to the engine. Handles OpenXR/VR pose integration before pushing position, rotation, FOV, and near clip to the renderer.

Final-stage camera filter that commits the computed camera state to the engine. Handles OpenXR/VR pose integration before pushing position, rotation, FOV, and near clip to the renderer.


Overview

This is a global filter camera mode with runningOrder = 1, meaning it runs last in the camera pipeline. It takes the accumulated data.res from all prior camera modes/filters and calls setCameraPosRotFovNearClipC to apply it to the engine. When an OpenXR VR session is active, it integrates the predicted headset pose.


Class Properties

PropertyTypeDefaultDescription
isGlobalbooltrueAlways active across all camera configurations
runningOrdernumber1Runs last in the camera pipeline
isFilterbooltruePost-processes other camera output
hiddenbooltrueNot selectable by the user

Methods

MethodSignatureDescription
initC:init()Sets global/filter/hidden flags and running order
updateC:update(data)Applies camera state to engine; integrates OpenXR if active

Engine Integration

-- Final pipeline step: push camera to renderer
setCameraPosRotFovNearClipC(
  data.res.pos.x, data.res.pos.y, data.res.pos.z,
  data.res.rot.x, data.res.rot.y, data.res.rot.z, data.res.rot.w,
  data.res.fov,
  data.res.nearClip
)

OpenXR VR Path

-- When VR headset is active, blend predicted pose
if data.openxrSessionRunning then
  OpenXR.setGeluaCameraPosRot(pos, rot)
  local posX, posY, posZ, rotX, rotY, rotZ, rotW = OpenXR.getCameraPosRotPredictedXYZXYZW()
  data.res.pos:setAddXYZ(posX, posY, posZ)
  data.res.rot:setMulXYZW(rotX, rotY, rotZ, rotW, ...)
end

Key Notes

  • Logs a warning if no level is loaded (levelLoaded global is nil)
  • Uses gameNotified flag to avoid spamming the warning
  • Must not be modified - final stage of camera pipeline

See Also

  • Camera Mode: Autopoint - Related reference
  • Camera Mode: Autozoom - Related reference
  • Camera Mode: Big Map - Related reference
  • Core Systems Guide - Guide

Camera Mode: Free Camera

Detached free-fly camera with Newton physics for smooth movement. Supports keyboard/mouse/gamepad/3D spacemouse input, configurable smoothing, and manual zoom.

Camera Mode: Handheld

Spring-damper filter that adds handheld camera feel by smoothing the look direction with physical simulation. Creates a natural lag and sway effect on the camera's aim direction.

On this page

OverviewClass PropertiesMethodsEngine IntegrationOpenXR VR PathKey NotesSee Also