Road Segment Creator
Road Segment Creator is a tool for creating and customizing a RoadSegment
How To Use
Create a RoadSegment.
Place the segment at the desired position.
By default, RoadSegment prefab contains RoadSegmentCreator component.
Select Road segment type.
Adjust general settings.
Adjust custom settings.
Customize pedestrian node settings.
Customize light settings.
Customize path settings.
Add RoadSegment to the RoadParent as children.
Custom Settings
Default Crossroad
Example.
Turn Road
Example.
Straight Road
Example.
Merge Crossroad
Example.
Merge Straight Road
Example.
Merge Crossroad To Oneway Road
Example.
Oneway Straight
Example.
Oneway Turn
Example.
Custom Straight Road
Creator for creating straight roads of any shape.
How To Use
Place the custom straight segment where you want it.
Place the traffic nodes at the start and the end of the path (or expand the road by holding left-shift key and clicking the left-mouse button).
Rotate the TrafficNodes in the direction of the route (make sure that the rotation of the nodes is set correctly).
Adjust the number of lanes and the speed limit of the segment.
If necessary, add more additional nodes to the paths (by pressing + in the scene) [optional step].
Rotate the nodes of the paths according to the direction of the path [optional step].
Snap TrafficNodes to the surface by pressing the Snap To Surface button if necessary [optional step].
Complete all the default steps.
Custom Settings
Snap Node Settings
Info.
Snap Surface Settings
- Node Buttonswhich node you want to snap to.
All
Node1
Node2
- Buttons:
Snap to surface: snap selected nodes to the surface.
Snap Line Settings
Creates additional path nodes along the curved meshes of the collider to make the path follow the shape of the collider (v 1.0.4+).
Example.
Path Settings
Examples
Source segment example.
Complex shape example.
Surface snapping example.
Custom Segment
Creator for creating segments of any shape and complexity.
How To Use
Place the custom segment where you want it.
Toggle on Custom settings parameter.
Select the New node settings type & create a new TrafficNode by pressing the Add Traffic Node button [optional step].
Place & rotate all created TrafficNode according to your needs (make sure that the rotation of the nodes is set correctly).
Snap TrafficNodes to the surface by pressing the Snap To Surface button if required [optional step].
Open the PathCreator tool to quickly create paths between nodes.
Complete all the default steps.
Note
You can convert any default template to Custom Segment in the Other settings tab.
New Node Settings
- New node settings type [custom settings enabled] new TrafficNode will be created like:
Prefab : new prefab.
Unique : created with unique defined settings.
Copy last : will be created with the settings of the last created node.
- Copy selectedwill be created with the settings of the selected node.
Copy node index
Node Handles
Parking Builder
Custom Settings
Snap Node Settings
Info.
Custom TrafficNode Editor Window
Window that you can configure each TrafficNode settings. Custom settings should be enabled.
Examples
Example.
Settings Description
Common
Additional local angle 2 : additional node 2 rotation angle.
Should revert direction : direction of the crossroad lanes will be reversed
Snap Node Settings
- Snap object type:
All : snap TrafficNode & Path node.
Traffic node : only TrafficNode.
Path node : only Path node.
- Auto-snap position on/off position snapping.
Add half offset : the snapped object is shifted by half of the set snapping size.
- Auto round rotation:on/off rotation snapping.
Round angle : snapping angle value.
Components
General settings
Custom settings
Pedestrian node settings
- Pedestrian corner connection type:
Disabled
Corner : will be created corner pedestrian node to connect crosswalks.
Straight : crosswalks will be connected directly.
Light settings
How To Use
Turn on traffic light option.
Select Light prefab type.
Set the traffic light offset or enable Light handle type.
If you want to configure the traffic lights individually, select the Node button.
Traffic lights
- Light handle type:
None
Position : enable position handle for traffic lights.
Rotation : enable rotation handle for traffic lights.
- Selected light prefab typeprefab of the traffic light to be added [can be changed in creator settings].
Oneway
Two way
Four way
- Light location :
Right : will be added to the right of the traffic nodes.
Left : will be added to the left of the traffic nodes.
Right left : will be added on both sides of the traffic node.
- Light angle offset settings:
Angle offset : local rotation angle of the traffic light.
Flip index : switches to the opposite light index in the traffic light.
Pedestrian lights
Path settings
Node selection panel
- How to customize path:
Select TrafficNode on the inspector panel.
Select desired path on the inspector panel (it will be highlighted in the scene).
Adjust the position of the path nodes (make sure path handles is enabled).
Press Open Path Settings button to customize Path settings window.
Road settings
Scene settings
- Show path handleson/off position handles in the scene.
Show edit buttons path nodes : on/off add & remove buttons nodes in the scene.
- Show waypointson/off visual circle position of the waypoint in the scene.
Show waypoints info : on/off info of waypoints (local index, speedlimit).
Turn connection settings
Segment handler settings
Other settings
Hotkeys
Parking Builder
A tool to quickly create a parking space. Is part of the RoadSegmentCreator and can only be enabled in the custom segment.
How To Use
Position a custom segment on the road where the parking spaces will be.
Set the size of the parking slot (settings).
Enable position handle
Position the parking pointer where you want the line to start.
Enable rotation handle and set the rotation of the parking slot by dragging a circle in the scene.
Set the object parking line to parking line and rotate the direction of the parking line by dragging a circle in the scene.
Enter the number of parking slots.
Open the Path tab.
Toggle on Show select path buttons option.
Select the source path in the scene.
Select the Enter tab and press the Create button.
In the created path create additional waypoint nodes by pressing + in the scene.
Customize Traffic Group, Initial speed limit and Node Clone Count parameters.
Open the Offsets tab and adjust the position handle for each node individually if required [optional].
Repeat the same steps (11 - 14) for the exit path.
Open Pedestrian tab.
Customize Weight, Parking node offset and Parking enter node offset
Blue circle - enter parking car PedestrianNode. Green circle - default PedestrianNode linked to the parking PedestrianNode.
Preview parking line result.
Press Create Line button.
Create line result.
Connect the pedestrian nodes to the pedestrian nodes of the city.
Note
- Created lines can be edited or deleted in the Created lines tab.
Settings
Common
- Line object type:
Parking place : handle parking place.
Parking line : handle parking line.
- Handles:
None : no handles.
Position : enabled position handle for the place or line.
Rotation : enabled rotation handle for the place or line.
Path
- Parking connection source type :
- Path [paths will be connected to the Parking source path (PathPoint connection)]
Parking source path : path from which the created parking slot paths will start and end.
Show select path buttons : on/off display exist paths of the segment to add a parking source path.
- Node [paths will be connected to the selected TrafficNodes (TrafficNode connection)]
Source TrafficNode : node from which the created parking slot paths will start.
Target TrafficNode : node to which the paths connected from the parking place.
- Single node [paths will be connected to the selected single TrafficNode (same node for enter & exit paths)]
Source TrafficNode : enter & exit TrafficNode for parking paths are the same.
- Rail type:
None : Rail Movement is disabled.
Enter only : the vehicles entering the car park have a Rail Movement.
Exit only : the vehicles leaving the car park have a Rail Movement.
Enter & exit : enter & exit paths have a Rail Movement.
- Handles Panel:
None : handles disabled.
Handles : position handles of the path enabled for first parking place.
Offsets : position handles for all parking places.
- Path Selection Panel:
None : displayed Enter & Exit paths.
- Enterdisplayed only Enter paths.
Initial path speed limit : initial speed limit of Enter paths.
Node clone count : number of nodes in the next paths that are will clone position from source path.
- Exitdisplayed only Exit paths
Initial path speed limit : initial speed limit of exit paths.
Node skip last count : number of last nodes in the next paths that are will clone position the last nodes from source path.