Contains a complete example of Mobile Traffic System and Mobile Pedestrian system working together.
Includes the following independent assets:
Mobile Traffic System V3 - Highly performant and easy to use traffic system that can make any driving game more fun to play in just a few clicks. No coding is required to set it up.
Mobile Pedestrian System - Create a realistic and vibrant urban environment with a customizable Pedestrian System. Assign pedestrian types, set priority waypoints, and manage dynamic obstacle avoidance.
Key Features
Uses a grid system, allowing it to be used in any scene dimension without performance issues.
Pathfinding on waypoints. Method to find the shortest path between 2 waypoints using the existing waypoints inside the scene.
Traffic lights intersections support.
Priority intersections support - vehicles and pedestrians decide by themselves to wait or to enter an intersection.
Player component. A script that makes traffic vehicles and pedestrians to give priority to the player in an intersection. Additionally, it provides the capability for traffic vehicles to overtake the player's car.
Vehicle and Pedestrian types - assign different types to vehicles and pedestrians and you can restrict access on some paths based on 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 paths. Useful to spawn more vehicles/pedestrians on the main paths and fewer on secondary paths.
Custom events on waypoints. Those events are triggered when a vehicle/pedestrian reaches a specially marked waypoint. Useful for dynamic actions inside the app.
Ability to override the behavior from the API.
Ability to subscribe to various events for a better overview of what happens inside the system and better customization opportunities.
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.
Works with Unity 6.
The full feature list is available on the respective asset page.