Road Constructor

If Road Constructor was used to create the road network, waypoints for the Mobile Traffic System could be generated automatically.

Requirements

Road Constructor can be obtained from the Asset Store

Setup

Please follow the Quick Start section first if you have not done it already to make sure the Mobile Traffic System is properly installed and working in your project.

Next, set your Grid and Layers as shown in the Prepare Scene section.

Enable road constructor waypoints

Select the object that contains the Road Builder component and press Initialize button.

To generate internal waypoints inside Road Constructor press the following buttons in order : Register Scene Objects, Add Traffic Components and Create Waypoints.

Now the Road Constructor waypoints will be exposed and ready to be converted into Traffic System waypoints.

Enable Road Constructor support in Traffic System

Open the Settings Window, go to External Tools -> Road Constructor and click Enable Road Constructor Support

Extract Waypoints

Open the Settings Window, go to External Tools -> Road Constructor Setup

Select the intersection type wanted Priority Intersection or Traffic Lights Intersection

Check Link lanes for overtake to enable vehicle overtaking in the scene.

Overtake link distance - this value determines the number of waypoints ahead of the current waypoint that will be linked to a waypoint in another lane. It facilitates overtaking by creating a connection between the current lane and another one at a specified distance ahead.

Control the traffic light duration by setting the Green Light Time and the Yellow Light Time. Each intersection will work according to the times set here.

Press Extract Waypoints to create the waypoints used by the Traffic System.

circle-exclamation

Last updated