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

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

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


Overview

A hidden filter that applies sine-wave-based position displacement and rotation perturbation. Unlike the noise mode (which is random and choppy), shake produces smooth, periodic oscillation with configurable amplitude and frequency per axis.


Class Properties

PropertyTypeDefaultDescription
isFilterbooltruePost-processes other camera output
hiddenbooltrueNot selectable by the user
ampvec3(0.08, 0.05, 0.03)Position amplitude per axis
freqvec3(0.05, 0.04, 0.03)Oscillation frequency per axis (Hz)
timeOffsetvec3(0, rand, rand)Phase offset per axis
timenumber0Accumulated time

Methods

MethodSignatureDescription
initC:init()Set default amplitude/frequency/phase
updateC:update(data)Apply sinusoidal offset to pos and rot

Shake Calculation

-- Sinusoidal position offset per axis
local offset = vec3(
  self.amp.x * math.sin(2π * (self.timeOffset.x + self.time) * self.freq.x),
  self.amp.y * math.sin(2π * (self.timeOffset.y + self.time) * self.freq.y),
  self.amp.z * math.sin(2π * (self.timeOffset.z + self.time) * self.freq.z)
)

-- Rotation perturbation from position offset (scaled to degrees→radians)
local rotEuler = offset * 10 * π/180
data.res.rot = data.res.rot * quatFromEuler(rotEuler.x, rotEuler.y, rotEuler.z)
data.res.pos = data.res.pos + offset

Key Notes

  • Different frequencies per axis prevent repetitive-looking patterns
  • Random phase offsets on Y/Z axes ensure each session looks different
  • Both position AND rotation are affected (rotation = 10× position in degrees)
  • Default frequencies are very slow (0.03–0.05 Hz) - subtle breathing effect
  • For impact shake, increase amp and freq significantly

See Also

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

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.

Camera Mode: Smooth

Spring-based position smoothing filter. Applies temporal spring smoothing independently to each axis of the camera position to reduce jitter and sudden jumps.

On this page

OverviewClass PropertiesMethodsShake CalculationKey NotesSee Also