Driveline Recording
Loads a recorded driveline file from a recce run and returns a `PointList`. A driveline is a series of timestamped position/orientation points captured during reconnaissance driving.
Loads a recorded driveline file from a recce run and returns a PointList. A driveline is a series of timestamped position/orientation points captured during reconnaissance driving.
Exports
| Function | Signature | Returns | Description |
|---|---|---|---|
M.load | (missionDir) | PointList | nil | Loads driveline from JSONL file; returns nil on failure |
How It Works
Load Flow
- Resolves driveline file path via
rallyUtil.drivelineFile(missionDir) - Parses JSONL file, converting each line to a driveline point with
pos(vec3),quat(quat), andts(timestamp) - Requires at least 3 points for a valid driveline
- Creates a
PointListfrom raw points - Calls
setupPointRelationships()(links prev/next pointers) - Calls
setupPointNormals()(calculates forward normals) - Logs load time and point count
Point Structure (per JSONL line)
{
pos = vec3(x, y, z), -- world position
quat = quat(x, y, z, w), -- vehicle orientation
ts = 1234.567 -- timestamp in seconds
}Dependencies
rallyUtil- file path helpers and timingjsonlUtils- JSONL parserPointList- linked-list point container with relationship/normal setup
local drivelineRecording = require('/lua/ge/extensions/gameplay/rally/recce/drivelineRecording')
local pointList = drivelineRecording.load(missionDir)
if pointList then
-- pointList has .points array, each with .pos, .quat, .prev, .next, .normal
local firstPoint = pointList.points[1]
endSee Also
- cutsRecording - Recce Cuts Loader - Related reference
- Gameplay Systems Guide - Guide
Cuts Recording
Loads recce cut recordings and their associated speech-to-text transcripts from JSONL files. Cuts are waypoint markers where the co-driver made voice recordings during reconnaissance.
Geo Pacenotes
Measures pacenote corner geometry by fitting circles to driveline points. Calculates corner severity, direction, radius, arc length, and fit quality. Provides debug visualization with 3D arc prisms.