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

Vehicle Touch

- **Node Name:** `Vehicle Touch`

Overview

  • Node Name: Vehicle Touch
  • Category: repeat_instant
  • File: extensions/flowgraph/nodes/vehicle/touching.lua

Checks if a vehicle is colliding with another vehicle. If no second ID is given, checks for any vehicle-to-vehicle collision and reports up to 5 colliding vehicle IDs.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node.
vehIdAnumberID of the vehicle to check collisions for.
vehIdBnumberOptional: specific vehicle to check collision against.

Output Pins

PinTypeDescription
flowflowAlways passes through.
touchingflowActive when a collision is detected.
vehId1–vehId5numberIDs of colliding vehicles (sorted, hidden, -1 if none).
touchingbboolTrue when collision detected (hidden).

Internals

Key Methods

MethodDescription
init()No-op.
work()Reads map.objects[vehIdA].objectCollisions and checks for specific or any collision.

How It Works

  1. Looks up vehicle A in map.objects and reads its objectCollisions table.
  2. Specific check: If vehIdB is provided, checks if that ID exists in the collision table.
  3. Any check: If no vehIdB, collects all colliding IDs, sorts them, and outputs up to 5.
  4. Sets touching flow and touchingb bool if any collision is found.

Usage Example

-- Flowgraph:
-- [Player Vehicle] → vehIdA → [Vehicle Touch] → touching → [Penalty Logic]
--                                    ↓ vehId1
--                               [Log Collision Partner]

-- Check collision in GE Lua:
local cols = map.objects[myVehId].objectCollisions
for otherId, _ in pairs(cols) do
  print("Touching vehicle: " .. otherId)
end

Key Dependencies

  • map.objects[id].objectCollisions - per-vehicle collision table maintained by the map system

Previously Undocumented (Added by Audit)

  • Input Pin: vehId2 (any)
  • Input Pin: vehId3 (any)
  • Input Pin: vehId4 (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

Move To Showroom

- **Node Name:** `Move To Showroom`

Props Touch

- **Node Name:** `Props Touch`

On this page

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