The Road Network Tool is an Unreal Engine plugin for creating complex road layouts using splines. Easily add, modify, and shape roads by adjusting spline points in the editor, while the tool generates road meshes and includes built-in AI pathfinding for vehicles. Ideal for smooth, curved roads and interconnected networks.
- Spline-based Road Creation: Create and shape road layouts by adding and adjusting spline points in the editor.
- Procedural Mesh Generation: Automatically generate road meshes according to the configured spline shapes and road width.
- AI Pathfinding Support: Built-in pathfinding for vehicle AI to navigate through the generated road networks.
- Road Segment Connection: Seamlessly connect and manage road segments for building complex networks.
- Efficient Spatial Queries: Use Quadtree-based spatial queries for improved road network performance.
- User-friendly Editor Plugin: Intuitive interface and controls for creating, managing, and visualizing road networks.
- Download and unzip the plugin folder.
- Move the folder into your Unreal Engine project's Plugins directory.
- Launch Unreal Engine and enable the Road Network Tool in the Plugins menu.
- Restart Unreal Engine if prompted.
- Switch to the Road Network Tool Mode: Click on Selection Mode and switch to RoadNetworkTool Mode.
- Create Splines: While in Line Tool mode, click on the floor or landscape to add new spline points.
- Connect and Shape Roads: Connect road segments to shape the network as needed. Switch to the Curve Tool, click on the spline, and drag to create curved roads.
- Generate Road Meshes: Adjust the road width as needed and click Create button to create procedural road surfaces based on the spline shapes.
- Enable AI Pathfinding: In your vehicle blueprint, use the
Get Actor of Class
node, with the actor class set toRoad Actor
. Call theFind Path Road Network
node. This will return an array of location paths from thestartLocation
to thetargetLocation
.
Unreal Engine Version: 5.4 or later. Development Environment: Unreal Engine Editor with C++ support (optional for source code modifications).
For bug reports, feature requests, or general questions, please visit our Patreon Page.
This project is licensed under the MIT License - see the LICENSE.md file for details.