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

Apply Velocity to Vehicle

- **Node Name:** `Apply Velocity to Vehicle`

Overview

  • Node Name: Apply Velocity to Vehicle
  • Category: repeat_p_duration
  • File: extensions/flowgraph/nodes/vehicle/applyVelocity.lua

Instantly sets a velocity on a vehicle each frame. Can use a custom direction vector or the vehicle's current facing direction. The coefficient multiplies the direction vector to control speed.

Pin Schema

Input Pins

PinTypeDefaultDescription
vehIdnumber-Vehicle ID. Uses player vehicle if not set.
dirVecvec3-Direction vector. Uses vehicle's forward direction if not set.
coefficientnumber1Multiplier for the direction vector (controls speed magnitude).

Internals

Key Methods

MethodDescription
work()Resolves vehicle, computes direction × coefficient, sends to thrusters.applyVelocity().

How It Works

  1. Each frame, resolves the vehicle from vehId or falls back to the player vehicle.
  2. If dirVec is provided, uses it; otherwise reads veh:getDirectionVector().
  3. Scales the vector by coefficient.
  4. Sends thrusters.applyVelocity(vec) to the vehicle's Lua VM.

Tip: To prevent triggering emergency systems (ESC, ABS) on some vehicles, gradually ramp up the coefficient over time rather than applying full force instantly.

Usage Example

-- Flowgraph:
-- [Hold Button] → [Apply Velocity (coefficient=20)] → vehicle flies forward

-- Equivalent vehicle-side call:
thrusters.applyVelocity({x=0, y=20, z=0})

-- Custom direction (upward launch):
-- dirVec = vec3(0, 0, 1), coefficient = 50
-- Result: vehicle launches straight up at 50 m/s

Key Dependencies

  • thrusters.applyVelocity() - vehicle-side thruster module
  • veh:getDirectionVector() - vehicle's forward direction

See Also

  • Align for Coupling (Flowgraph Node) - Related reference
  • Boost Vehicle (Flowgraph Node) - Related reference
  • Set Vehicle Colors (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Align For Coupling

- **Node Name:** `Align for Coupling`

Boost Vehicle

- **Node Name:** `Boost Vehicle`

On this page

OverviewPin SchemaInput PinsInternalsKey MethodsHow It WorksUsage ExampleKey DependenciesSee Also