This section covers the core workflow for using the Drive Path Editor to create AI vehicle driving paths and behaviors.
In the World Editor, locate the mode bar at the top
Click the Drive Path Editor mode button
The tool window will open with a row of buttons at the top
The first button is “Add New Drive Path Spline”
Click “Add New Drive Path Spline” in the tool window
The mouse cursor sphere on the map will change from red to purple
Left-click on the map to place nodes and draw the driving path
Continue clicking to add more nodes - the path spline will appear as the user draws
Mouse method: Click and drag nodes directly on the map
Gizmo method: Press ALT to toggle the gizmo, then use the translation gizmo handles
Select a node on the drive path spline
Look for the rib handles (left and right controls at the node)
Drag the rib handles in or out to adjust the path width
This affects the AI driving behavior and path following
Select a node on the drive path spline
Look for the bar handles (vertical controls at the node)
Drag the bar handles up or down to adjust velocity at that point
This controls how fast the AI drives through that section
Select node: Click on any node (it will be highlighted)
Drag node: Click and drag nodes to move them around the map
Adding new nodes: Hover over free space on the map to add nodes to either end of the spline (whichever is closer)
Inserting nodes: Hover over the spline to see a highlight sphere and text hint - click to insert a node
Delete node: Select a node and press DEL
Looping a spline: Drag the start or end node close to the other end - a hint line will appear with text markup. Hold SHIFT and release to create a loop
Joining splines: Drag the start or end node of one spline onto the start or end node of another spline of the same tool type - a hint line will appear. Hold SHIFT and release to merge them into one spline
Splitting splines: Select a node on the spline, then click the “Split” button under the spline list to divide the spline into two separate splines at that point
Simplifying splines: Use the “Simplify” button to reduce the number of nodes to a minimum while preserving the core shape
Flipping splines: Use the “Flip” button to reverse the order of nodes in the spline, effectively flipping the direction. This will also flip the velocity profile and driving behavior left to right
Prepare the vehicle: Ensure the vehicle is in the desired starting position
Click “Record” in the tool window
Drive the vehicle along the desired path
Click “Stop Recording” when finished
The tool will create a spline from the driving path
Drive smoothly: Avoid sudden movements for better path quality
Maintain consistent speed: This helps create natural velocity profiles
Follow the intended route: Drive exactly where the AI should follow
Include key points: Drive through important waypoints and turns
End naturally: Stop recording when the desired endpoint is reached
The recorded spline can be edited later, like any other path
Select a path spline in the paths list
Select a vehicle in the vehicles list
Click the link button beside the path or vehicle in their respective lists
The vehicle will now be connected to the path spline
The link status will be visible underneath both lists
Multiple vehicles can be linked to the same path
Link status shows which vehicles are connected to which paths
Unlink by clicking the same button again (it toggles the link state)
Switch vehicles by selecting different vehicles and linking them to the same path
Select the linked vehicle in the scene
Click “Play” or similar button in the tool window
The vehicle will follow the recorded path automatically
Watch the playback to see how the AI follows the path
Stop playback when adjustments are needed
Iterate
Play/Stop: Single button which toggles between starting and stopping AI driving
Looping: Splines can be set to loop, with configurable number of laps
Select a node on the drive path spline
Look for the bar handles (vertical controls above each node)
Drag up/down to adjust velocity at that point
Higher positions = higher speed (red colors)
Lower positions = lower speed (blue colors)
Speed variations create natural driving behavior
Slow down for turns by lowering velocity at curve nodes
Accelerate on straights by raising velocity at straight nodes
Smooth transitions between different speed zones
Test different profiles to find the right driving feel
Delay Time: How long the AI waits before starting to drive
Starting Node Index: Which node on the path the AI begins from
Route Speed: Alternative speed setting used in some playback modes (overrides velocity profile)
Aggression: How aggressively the AI drives
Drive in Lane: Whether the AI stays strictly within the path boundaries
Avoid Cars: Whether the AI attempts to avoid other vehicles
Start with defaults and adjust gradually
Test changes by running playback
Balance realism with desired driving style
Use route speed when velocity profiles aren’t needed
Free Mode: Unconstrained path drawing (default)
NavGraph Mode: Waypoint-based path creation
In the tool window, find the spline list
Use the enable/disable toggle for each spline (to the right of the name field)
Disabled splines: No nodes visible, but content still shows
Enabled splines: Full interaction with nodes and editing
Begin with basic paths before adding complexity
Use playback frequently to verify the path works
Let the recording feature do the work for natural paths
Adjust velocity gradually for better results
Use Free Mode for custom paths, NavGraph for existing road networks
Test with different vehicles to ensure compatibility
Once comfortable with these basic workflows, the user can explore:
Was this article helpful?