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 Bounds

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

Overview

  • Node Name: Get Vehicle Bounds
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/vehicleOOBB.lua

Provides the four corner positions and center of a vehicle's spawn world Oriented Object Bounding Box (OOBB).

Pin Schema

Input Pins

PinTypeDescription
vehIdnumberVehicle ID. Falls back to player vehicle.

Output Pins

PinTypeDescription
corner_FRvec3Front-right corner position.
corner_FLvec3Front-left corner position.
corner_BRvec3Back-right corner position.
corner_BLvec3Back-left corner position.
centervec3Center of the bounding box (average of 4 ground-level corners).

Internals

Key Methods

MethodDescription
init()No-op.
work()Reads the OOBB from the vehicle and outputs corner/center positions.

OOBB Point Mapping

Point IndexCorner
0Front-Left
3Front-Right
7Back-Right
4Back-Left

How It Works

  1. Resolves the vehicle by ID or falls back to the player vehicle.
  2. Gets the spawn world OOBB via veh:getSpawnWorldOOBB().
  3. Reads corner positions from OOBB point indices 0, 3, 4, 7.
  4. Computes center as the average of the four corner positions.
  5. Outputs all positions as table-format vec3 values.

Usage Example

-- Flowgraph:
-- [Vehicle ID] → vehId → [Get Vehicle Bounds]
--                              ↓ center    → [Distance Check]
--                              ↓ corner_FL → [Front-Left Sensor]

-- Equivalent GE Lua:
local veh = getPlayerVehicle(0)
local oobb = veh:getSpawnWorldOOBB()
local fl = oobb:getPoint(0)
local fr = oobb:getPoint(3)
local br = oobb:getPoint(7)
local bl = oobb:getPoint(4)
local center = (fl + fr + br + bl) * 0.25

Key Dependencies

  • veh:getSpawnWorldOOBB() - oriented object bounding box

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

Get Vehicle Data

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

Vehicle Ping

- **Node Name:** `Vehicle Ping`

On this page

OverviewPin SchemaInput PinsOutput PinsInternalsKey MethodsOOBB Point MappingHow It WorksUsage ExampleKey DependenciesSee Also