Mobile Traffic System v2

by [email protected]

Highly performant and easy-to-use traffic system that can make any driving game more fun to play in just a few clicks. Detailed documentation & tutorials are available.

For more detail this asset from the Unity Asset Store: Click Here

This is a paid asset, but now you can download the “Mobile Traffic System v2” for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.

Mobile Traffic System v2 v2.0.0

VIP Only

Description
Nominated for Best Development Tool on the Asset Store at Unity Awards 2021

IMPORTANT! If you own v1 of the asset please read carefully the instructions from our documentation on how to upgrade to v2.0 available here.

Key Features:

Trucks with trailer support.
Pathfinding on waypoints. Method to find the shortest path between 2 waypoints using the existing waypoints inside the scene.
The ability for traffic vehicles to follow a given path. Method to make any vehicle form anywhere in the scene to reach a specific destination.
Overtake – cars automatically overtake each other if the road has multiple lanes.
Traffic vehicles will clear the way for ambulances or other special cars if specified.
Traffic lights intersections support.
Priority intersections support – cars decide by themselves to wait or to enter an intersection.
Roundabout support – cars wait until the roundabout is free.
Narrow road support – cars wait until the lane is free before changing it.
The Complex Give Way feature allows developers to designate specific waypoints that must be clear for a vehicle to enter an intersection. This capability is particularly useful for scenarios where there’s a larger priority road intersected by a smaller side road. By utilizing Complex Give Way, developers can establish this setup without creating a traditional intersection.
Zipper-style give-way. Useful when a multi-lane road converges or narrows. Vehicles take turns advancing into the narrowed road alternately.
Building avoidance – if a car hits a building, it will try to recover itself.
Player component. A script that makes traffic vehicles give priority to the player in an intersection. Additionally, it provides the capability for traffic vehicles to overtake the player’s car.
Customizable vehicle properties – acceleration, max speed, brake speed, steer angle etc.
Variable number of wheels – from 3 to as many as you want.
Automatically car assignments – made just by pressing a button.
Speed routes – set speed restrictions for some lanes or areas and all cars will follow them.
Car types – assign different types to cars and you can restrict access on some roads based on car types (ex: trucks are allowed only on the first lane and are not allowed inside the cities).
Priority waypoints. Ability to set the importance of the roads. Useful to spawn more vehicles on the main roads and fewer on secondary roads.
Lights support – main, brake, blinkers, and reverse lights that work automatically.
Sound support – basic engine sound for each car based on acceleration and speed.
Hard shadow support – useful if you need even more performance.
Custom events on waypoints. Those events are triggered when a vehicle reaches a specially marked waypoint. Useful for dynamic actions inside the app.
Switch the direction of the entire waypoint network with a single click (currently in beta). Used for right-hand and left-hand traffic scenarios.
Capability to programmatically make a traffic vehicle to change lanes.
Ability to override the vehicle behavior from the API.
Capability to have vehicles inside the vehicle pool that will not be instantiated by the system. They need to be programmatically instantiated at the right time.
Ability to subscribe to various events for a better overview of what happens inside the system and better customization opportunities.
Added delegates for some actions to easily change the default behaviors used by the system.
Custom editor tools – many editor windows to make the integration process as smooth as possible.
Simple API for advanced functionalities.
Complete code included and commented.
Works for any platform that supports the Burst compiler.
Requires Unity 2021.3 LTS and above.

Compatible with:

EasyRoads3D – Integration Tutorials: Part 1 – Basics; Part 2 – Advanced
CiDy 2 – Integration Tutorial

Demos:

Android | PC

All that you see in the demo is included inside the package:

1 mobile production-ready car with 3 LODs and changeable colors, thanks to PolyNinja
9 road tiles that can be assembled in any way to create complex roads.
20 simple city buildings to populate your environment.
1 demo scene that assembles all the above elements into the playable scene from the demo.

Techinical Features:

Parallel job system – for better performance.
Burst compiler – to speed up the computations.
No wheel colliders – raycasts are used for better performance and high accuracy.
Pooling system – spawns the cars around the player so you can create high density traffic with low number of used cars. Very scalable for huge environments.
Layer management – for better optimization.
Waypoints driving – it comes with an easy to use Waypoint editor, so waypoint generation is semi-automatically.
Full editor script that automatically prepares your car.
Full code is provided and fully commented, no dlls.

Related Posts

Leave a Comment