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

Cinematic crash camera with multiple viewpoints. Supports cockpit POV from the second vehicle, overhead close-up, and stationary observer positions.

Cinematic crash camera with multiple viewpoints. Supports cockpit POV from the second vehicle, overhead close-up, and stationary observer positions.


Class API

MethodSignatureDescription
C:init()Sets default mode (1), hidden
C:setCustomData(data)Configures crash camera mode and vehicle references
C:update(data)Renders the selected camera viewpoint

Custom Data Fields

FieldTypeDescription
veh1IdnumberPrimary crash vehicle ID
veh2IdnumberSecondary crash vehicle ID (optional)
camModenumber1 = close overhead, 2 = stationary observer
hitPointvec3Crash impact point
camOffsetvec3Camera offset from hit point (mode 1)

Camera Modes

Mode 1: Close Overhead

  • Camera positioned at hitPoint + camOffset
  • Looks directly at the crash point
  • FOV: 50°

Mode 2: Stationary Observer

  • Camera placed at a random clear ground position within 20m
  • Uses raycast validation (10m+ distance, line-of-sight clear)
  • FOV: random 20-25°
  • Falls back after 40 recursive attempts

Cockpit View

  • When veh2Id is provided and random chance passes
  • Uses driver node of veh2, looking at veh1's bounding box center
  • FOV: 40°
  • Automatically exits cockpit when the two vehicles' bounding boxes intersect

Usage Examples

-- Set crash camera (called by crash detection system)
core_camera.setGlobalCameraByName("crash", false, {
  veh1Id = crashVeh1:getId(),
  veh2Id = crashVeh2:getId(),
  camMode = 2,
  hitPoint = impactPos,
  camOffset = vec3(0, 0, 3)
})

See Also

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

Camera Mode: Collision

Filter camera that prevents the camera from clipping through walls and terrain. Uses raycasting from target to camera with near-clip plane corner checks.

Camera Mode: Driver

First-person driver camera with physics-based head movement, seat adjustment, look-ahead, horizon stabilization, VR support, and per-vehicle saved configurations.

On this page

Class APICustom Data FieldsCamera ModesMode 1: Close OverheadMode 2: Stationary ObserverCockpit ViewUsage ExamplesSee Also