API ReferenceGE ExtensionseditorraceEditor
Race Editor - Tools Tab
Sub-module for batch operations on pathnodes and placing decorative objects along the race path.
Sub-module for batch operations on pathnodes and placing decorative objects along the race path.
Overview
Provides tools for: placing side decorations (left/right) along pathnodes using position/rotation/scale offsets; batch pathnode operations (drop to terrain, align normals, set sizes, align to grid); removing redundant waypoints; and debug utilities.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (raceEditor) | Initializes with default offsets |
C:setPath | (path) | Sets the race path |
C:selected / C:unselect | () | No-op |
C:draw | () | Renders the tools panel |
C:drawGeneralInfo | () | Main UI with decoration and batch tool controls |
C:getSideTransformParameters | () | Returns current offset parameters for side transforms |
C:createDecoration | (transforms) | Creates TSStatic/Prefab objects in a SimGroup |
C:changeFieldMulti | (field, newDataMap) | Batch-updates a field across multiple pathnodes with undo |
C:existsIcon | (f) | Shows file existence indicator |
Side Decoration System
| Parameter | Description |
|---|---|
| Position Offset | XYZ offset from pathnode center |
| Rotation Offset | Euler angles in degrees |
| Scale Offset | XYZ scale multiplier |
| Rotation Mode | terrain, pathnode, or absolute alignment |
| Left/Right Object | .dae (TSStatic) or .prefab file paths |
Batch Operations
| Button | Description |
|---|---|
| Drop All to Terrain | Snaps all pathnode Z to terrain height |
| Align All Normals to Terrain | Aligns all normals with terrain slope |
| Set All Pathnode Sizes | Sets uniform radius for all pathnodes |
| Remove Redundant BeamNGWaypoints | Deletes scene objects matching pathnode names |
| Align All to Grid | Rounds all pathnode positions to integers |
| Remove All Segments | Clears all segments |
Debug Tools
| Button | Description |
|---|---|
| Open Test Race Window | Opens the race testing sub-window |
| Dump Path | Prints race path data to console |
| Dump Auto Config / Reverse | Prints auto-configuration results |
Notes
- Preview mode renders colored axis lines at each decoration position.
- "Replace" button deletes the previous group before creating a new one.
- Created decoration groups are named
<raceName>_decorationwith auto-incrementing suffix.
Module Variables
windowDescription(string) - Module variable.
Functions
displayClassification(classification, name, field, tt)
Handles display classification.
classification(any)name(string)field(any)tt(any)
Returns: o
selector(name, objects, fieldName, clrI, tt)
Handles selector.
name(string)objects(any)fieldName(string)clrI(any)tt(any)
Returns: o
Module Variables
windowDescription(string) - Module variable.
Functions
displayClassification(classification, name, field, tt)
Handles display classification.
classification(any)name(string)field(any)tt(any)
Returns: o
selector(name, objects, fieldName, clrI, tt)
Handles selector.
name(string)objects(any)fieldName(string)clrI(any)tt(any)
Returns: o
See Also
- Race Editor - Pacenotes Tab - Related reference
- Race Editor - Pathnodes Tab - Related reference
- Race Editor - Segments Tab - Related reference
- World Editor Guide - Guide