API ReferenceGE ExtensionseditorraceEditor
Race Editor - Start Positions Tab
Sub-module for placing and editing vehicle start/recovery positions in race paths.
Sub-module for placing and editing vehicle start/recovery positions in race paths.
Overview
Manages start positions (spawn points) for races. Each position has a world position and rotation quaternion. Supports gizmo-based translate/rotate, Shift-drag creation with direction, terrain alignment, and vehicle teleportation.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (raceEditor) | Initializes with parent editor reference |
C:setPath | (path) | Sets the race path |
C:selected / C:unselect | () | Activates/deactivates display |
C:selectStartPosition | (id) | Selects a start position, updates gizmo |
C:draw | (mouseInfo) | Main loop - gizmo, input, UI rendering |
C:input | () | Shift=create new, Click=select existing |
C:createStartPosition | () | Shift-drag creates position with drag direction as facing |
C:beginDrag / C:dragging / C:endDragging | () | Gizmo translate/rotate with undo |
C:drawStartPositions | () | List+detail panel with position editing |
Start Position Properties
| Property | Type | Description |
|---|---|---|
name | string | Display name |
pos | vec3 | World position |
rot | quat | Facing rotation |
Actions
| Button | Description |
|---|---|
| Down to Terrain | Snaps Z to terrain height |
| Align with Terrain | Adjusts rotation to match terrain slope |
| Move Veh To | Teleports player vehicle to this position |
| Set to Current Vehicle | Sets position/rotation from current vehicle |
Notes
- Creation uses drag direction to set facing: drag from spawn point toward intended forward direction.
- The gizmo rotation mode edits the facing quaternion directly.
- Start positions are referenced by track layout for default/reverse/rolling start configurations.
Module Variables
windowDescription(string) - Module variable.
Functions
updateTransform(index)
Updates transform.
index(number)
Returns: end
hoveringStartPosition()
Handles hovering start position.
Returns: end
addHistory(name, old)
Adds history.
name(string)old(any)
onEditModeActivate()
Callback for edit mode activate event.
Module Variables
windowDescription(string) - Module variable.
Functions
updateTransform(index)
Updates transform.
index(number)
Returns: end
hoveringStartPosition()
Handles hovering start position.
Returns: end
addHistory(name, old)
Adds history.
name(string)old(any)
onEditModeActivate()
Callback for edit mode activate event.
See Also
- Race Editor - Pacenotes Tab - Related reference
- Race Editor - Pathnodes Tab - Related reference
- Race Editor - Segments Tab - Related reference
- World Editor Guide - Guide