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)
Procedural Static CamPath (Flowgraph Node)Procedural Direct CamPath (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 Extensionsflowgraphnodesscenecameraprocedural

Procedural Direct CamPath (Flowgraph Node)

- **Node Name:** `Procedural Direct Campath`

Overview

  • Node Name: Procedural Direct Campath
  • Category: once_p_duration
  • File: extensions/flowgraph/nodes/scene/camera/procedural/procDirectPath.lua

Creates a cinematic camera path that flies from one position to another with smooth elevation changes, rotation interpolation, and FOV zoom effects. Optionally supports looping back to the start.

Pin Schema

Input Pins

PinTypeDescription
fromvec3Start position of the path
tovec3End position of the path
loopboolIf the path should loop (hidden, default: false)
durationnumberTotal duration in seconds (hidden, default: 14)

Output Pins

PinTypeDescription
pathNamestringName of the created camera path

Behavior

  • workOnce() - Procedurally builds a multi-keyframe camera path:
    1. Computes a forward direction vector between from and to.
    2. Creates 5 keyframes: start (low angle), slightly pulled back, elevated midpoint, zoom-in hold, and final hold.
    3. Uses quaternion interpolation (slerp) for smooth rotation transitions.
    4. FOV narrows from 60° → 50° → 30° for a cinematic zoom effect.
    5. If loop is true, adds 3 more keyframes to return the camera to the start position.
    6. Registers the path and outputs the name.

Keyframe Structure

KeyframeTime (ratio)Description
from1/14Start position, angled down 45°
from23/14Slightly pulled back from start
mid210.5/14Elevated midpoint, looking at target, FOV 50
to12.5/14Hold position, FOV 30 (zoomed)
to214/14Final hold, FOV 30

Key Dependencies

  • self.mgr.modules.camera:getUniqueName() - Unique path name generation
  • self.mgr.modules.camera:addCustomPath() - Path registration
  • quatFromEuler(), quatFromDir() - Quaternion math helpers

How It Works

The node creates an overhead flyover effect: starts at an angled view of the from point, rises to an elevated midpoint, then zooms into the to point. The camera smoothly interpolates rotation using slerp and narrows the FOV for a dramatic reveal. With looping enabled, it reverses back, creating a continuous aerial tour.

Example Usage

-- Create a dramatic reveal between two points of interest
-- Wire two vec3 positions (e.g., from spawn point to destination)
-- Connect pathName to Start Cam Path to play the flyover
-- Use duration input to control pacing (default 14 seconds)

See Also

  • Procedural Static CamPath (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Procedural Static CamPath (Flowgraph Node)

- **Node Name:** `Procedural Static CamPath`

State Entry (Flowgraph State Node)

- **Node Name:** `State Entry`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorKeyframe StructureKey DependenciesHow It WorksExample UsageSee Also