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: Relative

Vehicle-relative free camera with full 6DOF movement, saveable position slots, adjustable point light, and near-clip control. The primary camera for cinematic vehicle photography.

Vehicle-relative free camera with full 6DOF movement, saveable position slots, adjustable point light, and near-clip control. The primary camera for cinematic vehicle photography.


Overview

The relative camera moves freely in vehicle-local space - it stays attached to the vehicle's reference frame but can be positioned and rotated independently. Features include 10 saveable camera slots (with optional names from jbeam), a toggleable point light for dark environments, adjustable near-clip distance, and smooth input processing.


Class Properties

PropertyTypeDefaultDescription
disabledByDefaultbooltrueMust be enabled in settings
resetCameraOnVehicleResetboolfalseKeep position on vehicle reset
lightBrightnessnumber0Point light brightness (0 = off)
camMaxDistnumbermath.hugeMax distance from ref node
slotstable{}Saved position/rotation/FOV presets
slotNameIndexMaptable{}Name-to-index lookup for slots
posvec3computedPosition in vehicle-local space
rotvec3(0, 180, 0)Euler rotation (yaw, pitch, roll)
nearClipnumbernilCustom near clip (nil = level default)

Methods

MethodSignatureDescription
initC:init()Initialize camera, zoom, slots
onVehicleCameraConfigChangedC:onVehicleCameraConfigChanged()Handle vehicle/config change
resetC:reset()Reset to saved position
updateC:update(data)Process movement/rotation input
saveSlotC:saveSlot(slot)Store pos/rot/fov to slot number
loadSlotC:loadSlot(slot)Load from slot (number or name)
setFOVC:setFOV(fov)Set zoom FOV
setRotationC:setRotation(rot)Set rotation vector
setOffsetC:setOffset(pos)Set position offset
setMaxDistanceC:setMaxDistance(d)Set max distance from vehicle
hotkeyC:hotkey(hotkey, modifier)Handle slot hotkeys (0=load, 1=save)
setRefNodesC:setRefNodes(center, left, back)Set reference nodes
onCameraChangedC:onCameraChanged(focused)Setup/teardown quick access menus
sendMenusC:sendMenus()Register quick-access radial entries
C:_updateLight(brightness)Creates/updates/removes point light at given brightness
C:storeLightInfo()Save light state when switching away
C:restoreLightInfo()Restore light state when switching back

Quick Access Radial Menu

Registers entries under /root/sandbox/camera/:

  • Light - Cycle brightness: 0% → 10% → 50% → 100% → 0%
  • Near Clip - Cycle: level default → 0.0005m → 0.01m → 0.1m → default
  • Slots - Sub-menu with 10 numbered slots (save/load)

Movement System

-- Smoothed 6DOF input
local dx = dxSmoother:getCapped(MoveManager.right - MoveManager.left, dt)
local dy = dySmoother:getCapped(MoveManager.forward - MoveManager.backward, dt)
local dz = dzSmoother:getCapped(MoveManager.up - MoveManager.down, dt)

-- Position in vehicle-local space, rotated by look direction
self.pos = self.pos + qdirLook * pd

Point Light

-- Creates a PointLight scene object named 'relativecameralight'
local l = createObject('PointLight')
l.canSave = false
l.radius = 20
l:registerObject('relativecameralight')

Key Notes

  • Position is stored in vehicle-local coordinates (survives vehicle movement)
  • Default position computed from getSpawnWorldOOBBRearPoint() if no slots defined
  • jbeam can define named camera presets that auto-populate slots
  • Speed modifier (data.fastSpeedModifier) triples movement speed
  • Near clip control is critical for close-up shots without z-fighting
  • Light position follows camera for interior/engine bay photography

See Also

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

Camera Mode: Predictor

Filter that shifts the camera's look-at target ahead of the vehicle based on velocity. Creates a forward-looking effect that anticipates the vehicle's movement.

Camera Mode: Shake

Sinusoidal camera shake filter that adds continuous oscillating position and rotation offsets. Creates a smooth, rhythmic shake effect for cinematic or impact scenarios.

On this page

OverviewClass PropertiesMethodsQuick Access Radial MenuMovement SystemPoint LightKey NotesSee Also