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
Align For CouplingApply Velocity to VehicleBoost VehicleSet Vehicle ColorsCustom Parts Config ProviderEnter VehicleFlip UprightFreeze VehicleGenerate License PlateGet Vehicle ActiveGet Electrics ValueGet GearboxmodeGet Powertrain DataGravity ForceDistance From GroundHas Coupler TagIs CoupledIs Player UsableKeep VehicleMove Vehicle ToOn Cannon FiredOn Vehicle DestroyedOn Vehicle ResetOn Vehicle SpawnedOn Vehicle SwitchedPlayer UsableRandom Config ProviderRecover In PlaceRemove VehicleTimeline ReplaySet Vehicle ActiveSet Gearbox ModeSet IgnitionSet License PlateSet LightbarSet LightsShift to Gear IndexSpawn VehicleVehicle StatesTeleport To Last RoadToggle Vehicle ControlsMove To ShowroomVehicle TouchProps TouchStatic Object TouchTrack VehicleTrailer Respawn ControlVehicle Config ProviderGet Vehicle DataGet Vehicle DataGet Vehicle BoundsVehicle PingGet Vehicle Wheel Center

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 Extensionsflowgraphnodesvehicle

Get Vehicle Data

- **Node Name:** `Get Vehicle Data`

Overview

  • Node Name: Get Vehicle Data
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/vehicleData.lua
  • Obsolete: Replaced by the newer vehicleMapData, vehicleOOBB, and vehicleWheels nodes.

Provides comprehensive vehicle telemetry: position, direction, velocity, damage, bounding box corners, and wheel center.

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberVehicle ID. Falls back to player vehicle.

Output Pins

PinTypeDescription
activeboolWhether the vehicle is active/visible (hidden).
damagenumberDamage amount (not monetary).
dirVecvec3Normalized forward direction vector.
dirVecUpvec3Normalized up direction vector (hidden).
rotationquatVehicle rotation quaternion (hidden).
positionvec3Ref-node world position.
corner_FRvec3Front-right OOBB corner (hidden).
corner_FLvec3Front-left OOBB corner (hidden).
corner_BRvec3Back-right OOBB corner (hidden).
corner_BLvec3Back-left OOBB corner (hidden).
wheelCentervec3Average of all wheel positions.
velocityVectorvec3Velocity vector (hidden).
velocitynumberSpeed in m/s.

Internals

Key Methods

MethodDescription
init()No-op.
work()Reads map.objects[vehId] for telemetry, computes wheel center from axis nodes, and reads OOBB corners.

How It Works

  1. Resolves the vehicle and looks up its data in map.objects.
  2. Outputs position, direction, velocity, and damage from the map object.
  3. Computes the wheel center by averaging all wheel axis node positions.
  4. Reads the spawn world OOBB for corner positions.
  5. Computes a rotation quaternion from direction vectors.

⚠️ Obsolete: Use the split replacement nodes: vehicleMapData (telemetry), vehicleOOBB (bounds), and vehicleWheels (wheel center).

Usage Example

-- Flowgraph:
-- [Vehicle ID] → vehId → [Get Vehicle Data]
--                              ↓ velocity → [Speed Display]
--                              ↓ position → [Distance Check]

-- The map object data equivalent:
local data = map.objects[vehId]
local speed = data.vel:length()
local pos = data.pos

Key Dependencies

  • map.objects - vehicle telemetry from the map system
  • veh:getSpawnWorldOOBB() - oriented bounding box
  • veh:getWheelCount() / veh:getWheelAxisNodes() - wheel data

Previously Undocumented (Added by Audit)

  • Input Pin: config (any)
  • Input Pin: model (any)

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Apply Velocity to Vehicle (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Vehicle Config Provider

- **Node Name:** `Vehicle Config Provider`

Get Vehicle Data

- **Node Name:** `Get Vehicle Data`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesPreviously Undocumented (Added by Audit)See Also