API ReferenceGE Extensionseditor
Editor AI Tests
Editor tool window for debugging AI path/route planning and tuning AI driving parameters. Two tabs: Route (navgraph routing) and AI Vehicles (parameter tuning).
Editor tool window for debugging AI path/route planning and tuning AI driving parameters. Two tabs: Route (navgraph routing) and AI Vehicles (parameter tuning).
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized | () | Registers the tool window and menu item |
M.onEditorDeactivated | () | Restores dynamic collision setting on editor exit |
M.onEditorGui | () | Renders the two-tab ImGui interface |
Route Tab Features
- Start/Finish markers with optional waypoints
- Set markers from player vehicle or camera position
- Send route to ground markers system
- Toggle one-way road override
- Track player vehicle along route with distance display
- Visual route display with rainbow-colored path segments
AI Vehicles Tab Features
- Select/add/remove AI test vehicles
- Per-vehicle parameter tuning:
aggression(0–2),turnForceCoef(0–5),awarenessForceCoef(0–5)edgeDist(-2–2),lookAheadKv(0.5–1),staticFrictionCoefMult(0.75–2)
- Use current route or generate random paths
- Enable AI trajectory debug drawing
- Toggle dynamic collisions for ghost comparison
- Merge positions, Start/Stop/Reset/Reload controls
Usage Example
-- The tool is accessed via the editor menu:
-- Debug > Vehicle AI Path/Plan Debug
-- No direct API - this is a visual debugging tool.See Also
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- Asset Browser - Related reference
- World Editor Guide - Guide
Vehicle Part Management
Manages vehicle part configurations - saving/loading `.pc` files, highlighting/selecting parts in the UI, and merging config changes (parts, vars, paints) into the active vehicle.
Editor AI Visualization
Renders the AI navigation graph (navgraph) in the editor viewport with multiple color-coded draw modes for debugging road properties.