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
Rally Driveline MeasurementRally Driveline RouteRally Driveline V3Rally Driveline Point ListRally Driveline Utility

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 Extensionsgameplayrallydriveline

Rally Driveline Utility

Utility constants for the rally driveline spline system. Provides default values for spline width, RDP simplification tolerance, and subdivision parameters.

Utility constants for the rally driveline spline system. Provides default values for spline width, RDP simplification tolerance, and subdivision parameters.


Public API

ConstantTypeValueDescription
M.defaultSplineWidthnumber10.0Default width for spline nodes
M.defaultSimplificationTolerancenumber1.0RDP simplification tolerance in meters
M.minSplineDivisionsnumber10Minimum number of subdivisions per spline segment
M.minSplineSpacingnumber2.0Minimum distance between subdivided points in meters

How It Works

These constants are consumed by DrivelineV3 and related spline processing code:

  • defaultSplineWidth is applied uniformly to all spline nodes (constant width)
  • defaultSimplificationTolerance controls how aggressively the RDP algorithm reduces point count - lower values preserve more detail
  • minSplineDivisions and minSplineSpacing control the density of Catmull-Rom subdivisions

Usage Examples

local DrivelineUtil = require('/lua/ge/extensions/gameplay/rally/driveline/util')

-- Use in spline processing
local tolerance = DrivelineUtil.defaultSimplificationTolerance
rdp.simplifyNodesWidthsNormals(nodes, widths, normals, tolerance)

Notes

  • These values represent sensible defaults for rally stage drivelines
  • Changing defaultSimplificationTolerance affects the tradeoff between point count and shape accuracy
  • minSplineSpacing of 2.0m produces dense enough output for smooth audio triggering along the route

See Also

  • Rally Driveline Measurement - Related reference
  • Rally Driveline Route - Related reference
  • Rally Driveline V3 - Related reference
  • Gameplay Systems Guide - Guide

Rally Driveline Point List

Container class for a series of points along a rally driveline path. Provides point creation, relationship management, normal calculation, length computation, nearest-point search, and debug rendering

Rally Loop Penalties

Calculates time control penalties for rally loop events. Determines if a driver arrived early, on-time, or late at a checkpoint and computes penalty amounts (+10 per minute deviation).

On this page

Public APIHow It WorksUsage ExamplesNotesSee Also