RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
Collection Marker (Flowgraph Node)Custom Lua Command (Flowgraph Node)Get Object Field (Flowgraph Node)Get Player Vehicle ID (Flowgraph Node)Get Point on Decalroad (Flowgraph Node)Show/Hide Object (Flowgraph Node)ID by Name (Flowgraph Node)Keep Prefab (Flowgraph Node)Particle Emitter (Flowgraph Node)Point on Decalroad (Flowgraph Node)Raceline Parking (Flowgraph Node)Raycast (Flowgraph Node)Parking Markers / Rect Marker (Flowgraph Node)Reload Collision (Flowgraph Node)Reload Nav Graph (Flowgraph Node)Remove Prefab (Flowgraph Node)Reset Prefab (Flowgraph Node)Set Object Field (Flowgraph Node)Sevensegment Display (Flowgraph Node)Single Marker (Flowgraph Node)Spawn Light / SpotLight (Flowgraph Node)Spawn Prefab (Flowgraph Node)Spawn TSStatic (Flowgraph Node)Store Statics (Flowgraph Node)Track Prefab (Flowgraph Node)
Camera Transform (Flowgraph Node)Camera Look at Position (Flowgraph Node)Camera Auto Circle (Flowgraph Node)Simple Cam Path (Flowgraph Node)Get Camera FOV (Flowgraph Node)Get Camera Mode (Flowgraph Node)Get Cam Path (Flowgraph Node)Restart Cam Path (Flowgraph Node)Return Camera to Vehicle (Flowgraph Node)Set Camera FOV (Flowgraph Node)Set Camera Mode (Flowgraph Node)Set Camera Position (Flowgraph Node)Set Camera Rotation (Flowgraph Node)Start Cam Path (Flowgraph Node)Stop Cam Path (Flowgraph Node)

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 Extensionsflowgraphnodesscenecamera

Camera Auto Circle (Flowgraph Node)

- **Node Name:** `Camera Auto Circle`

Overview

  • Node Name: Camera Auto Circle
  • Category: once_p_duration
  • File: extensions/flowgraph/nodes/scene/camera/cameraCircle.lua
  • Icon: Camera icon
  • Color: Camera color

Makes the camera orbit in a circle around a vehicle or point. Supports configurable radius, height, speed, and optional terrain-snapping height.

Pin Schema

Input Pins

PinTypeHiddenDescription
vehIdnumbernoVehicle ID to orbit; defaults to player vehicle
centerPosvec3yesOverride center position (instead of vehicle)
startAnglenumberyesStarting angle in degrees
radiusnumbernoDistance from center point
heightnumbernoHeight above center point
snapHeightboolyesIf true, height is relative to terrain surface
speednumbernoRotation speed (deg/sec); negative = counterclockwise

Output Pins

None.

Internals

  • self.angle - current orbit angle in degrees, incremented by dtReal * speed each frame.
  • self.centerPos, self.offset, self.camPos - reusable vec3 objects to avoid allocation.
  • On workOnce, if a vehicle is targeted, the start angle is made relative to the vehicle's forward direction.
  • When snapHeight is active, uses be:getSurfaceHeightBelow() and lerps between frames for smooth transitions.

How It Works

  1. Setup (workOnce) - Switches to free camera, adjusts start angle relative to vehicle facing direction (if applicable).
  2. Each frame (work):
    • Updates the center position from the vehicle's OOBB center or the centerPos override.
    • Computes camera position on the circle: center + (sin(angle), cos(angle), 0) * radius + height.
    • If snapHeight, adjusts Z to terrain height (with smoothing), clamped to prevent going below center.
    • Points the camera at the center using quatFromDir.
    • Increments angle by dtReal * speed.

Lua Code Example

-- Cinematic orbit around the player vehicle:
-- cameraCircle (radius=10, height=3, speed=15)
-- Camera slowly orbits at 10m distance, 3m up, 15°/sec clockwise.

-- Orbit around a fixed point:
-- cameraCircle (centerPos={100,200,50}, radius=20, height=5, speed=-10)
-- Counterclockwise orbit around world position.

Key Dependencies

  • core_camera - setPosRot()
  • commands.isFreeCamera() / commands.setFreeCamera()
  • be:getSurfaceHeightBelow() - terrain height query
  • getObjectByID() - vehicle lookup
  • self.mgr.dtReal - real-time delta

Additional Methods

C:_executionStarted()

Called when graph execution starts. Used for initialization/reset.

C:onNodeReset()

Called when the node is reset.


See Also

  • Camera Transform (Flowgraph Node) - Related reference
  • Camera Look at Position (Flowgraph Node) - Related reference
  • Simple Cam Path (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Camera Look at Position (Flowgraph Node)

- **Node Name:** `Camera Look at Position`

Simple Cam Path (Flowgraph Node)

- **Node Name:** `Simple Cam Path`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesAdditional MethodsC:_executionStarted()C:onNodeReset()See Also