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 Look at Position (Flowgraph Node)

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

Overview

  • Node Name: Camera Look at Position
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/scene/camera/cameraAutoRotate.lua
  • Icon: Camera icon
  • Color: Camera color

Sets the camera rotation to always look at a given target position. The camera's position stays where it is; only the rotation updates.

Pin Schema

Input Pins

PinTypeDescription
positionvec3Target position to look at

Output Pins

None.

Internals

  • Uses a constant up vector vec3(0, 0, 1).
  • Switches to free camera mode if not already active.
  • Computes look-at quaternion via quatFromDir(target - camPos, vecUp).

How It Works

  1. Every frame, ensures the camera is in free camera mode (commands.setFreeCamera()).
  2. Gets the current camera position via core_camera.getPosition().
  3. Computes the direction from the camera to the target position.
  4. Sets the camera rotation to face that direction while maintaining the up vector.

Lua Code Example

-- Make the camera always look at a vehicle:
-- vehiclePosition → cameraAutoRotate.position
-- Camera stays in place but tracks the vehicle.

-- Or look at a static point of interest:
-- cameraAutoRotate.position = {100, 200, 50}

Key Dependencies

  • core_camera - getPosition(), setPosRot()
  • commands.isFreeCamera() / commands.setFreeCamera() - camera mode control
  • quatFromDir() - quaternion from direction vector

Additional Methods

C:work()

Main work function called each frame/tick when the node is active.


See Also

  • Camera Transform (Flowgraph Node) - Related reference
  • Camera Auto Circle (Flowgraph Node) - Related reference
  • Simple Cam Path (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Camera Transform (Flowgraph Node)

- **Node Name:** `Camera Transform`

Camera Auto Circle (Flowgraph Node)

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

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsHow It WorksLua Code ExampleKey DependenciesAdditional MethodsC:work()See Also