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)
| Hook | Description |
|---|---|
M.onUpdate | Draws the route and tracks the player vehicle |
M.onVehicleResetted | No-op placeholder |
M.onExtensionLoaded | Creates a 3-point route via Route:setupPathMulti() |
M.onExtensionUnloaded | No-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 worldSee 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