RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Gameplay AchievementGameplay CityDiscoverForce FieldGarage ModeMarker InteractionParking SystemGameplay Playmode MarkersGameplay PoliceGameplay RallyGameplay Rally LoopGameplay Raw POIsGameplay Skidpad TestSpeed Trap LeaderboardsSpeed Traps and CamerasGameplay StatisticsTaxi Ride SystemTraffic SystemVehicle PerformanceWalking
Rally Audio ManagerRally Camera Path PlayerRally ClientRally Cut CaptureRally EnumsRally Extension HelperRally GeometryRally ManagerRecce ManagerRecce AppRecce SettingsRally Settings ManagerSnap-to-RoadTraffic Exclusion ZonesRally UtilityRally Vehicle CaptureRally Vehicle Tracker
Route Tracking Test

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 Extensionsgameplayrallytest

Route Tracking Test

Debug extension for testing the route tracking system. Creates a simple 3-point route and tracks the player vehicle along it with debug visualization.

Debug extension for testing the route tracking system. Creates a simple 3-point route and tracks the player vehicle along it with debug visualization.


Extension Name

gameplay_rally_test_testRouteFix

Exports (Hooks)

HookDescription
M.onUpdateDraws the route and tracks the player vehicle
M.onVehicleResettedNo-op placeholder
M.onExtensionLoadedCreates a 3-point route via Route:setupPathMulti()
M.onExtensionUnloadedNo-op placeholder

How It Works

Test Route

Uses three hardcoded positions (on the driver training map) to create a simple test route:

local path = {
  vec3(1499.20874, 1593.685303, 138.6869507),
  vec3(1508.348755, 1600.3302, 139.9772339),
  vec3(1516.930908, 1606.302002, 141.7883606)
}

On Load

Creates a Route object from the gameplay route module and sets up the multi-point path.

Per-Frame Update

  • Draws the route path as connected square prisms with labeled spheres
  • Tracks the player vehicle position along the route via route:trackVehicle(veh)

Debug Drawing

Also includes commented-out drawMousePos() for raycasting mouse position to terrain with click logging.

-- Load the test extension
extensions.load('gameplay_rally_test_testRouteFix')
-- Observe debug visualization in the 3D world

See Also

  • Gameplay Systems Guide - Guide

Driveline Normals

Calculates forward normal vectors for driveline points using adjacent point positions. Used for waypoint orientation and direction display.

Rally Dev Tools

ImGui panel for rally development tools in the world editor. Provides text compositor enumeration, corner detection from driveline, pacenote generation, elevation profile analysis, and traffic exclusi

On this page

Extension NameExports (Hooks)How It WorksTest RouteOn LoadPer-Frame UpdateDebug DrawingSee Also