Create and manage a complete traffic system in your scenes in no time at all! Design new lanes and new waypoints and connect them together. Whether you're developing a driving game, a city simulation, or a virtual environment, Realistic Traffic Controller will bring life and authenticity to your scenes.
WebGL Demo - Android Demo - Documentation
[V1.70 has been released on 18 November 2024, more details in release notes.]
Supported Builtin, URP, and HDRP
Supported Unity 2021 - 2022 - 2023
Supported Unity 6 (6000.0.25f1 -->)
The optimized traffic spawner will manage all vehicles in your scene, allowing vehicles to navigate roads, obey traffic rules, and interact with each other and the environment. Vehicles react intelligently to changing traffic conditions and adapt their behavior accordingly, creating a beautiful traffic flow in your game.
Check out the Realistic Traffic Controller in City Car Driving Simulator.
[Features]
[Editor Features]
[RP]
Regardless of your use case, Realistic Traffic Controller will elevate the realism and immersion of your projects. Take control of traffic like never before and create dynamic environments that will captivate your audience.
[V1.70]
Fixed error on "don't spawn areas".
Added Builtin package.
Added URP package.
Added HDRP package.
[V1.60]
Fixed an issue on interconnection options displayed on the inspector panel.
Fixed an error related to the scene view while lane is selected but scene panel is not active.
Setting rigidbody settings while initializing the new vehicles.
[V1.50]
Increased threshold for connecting the waypoints.
Forcing gizmos to be enabled while creating new lanes.
Changed legacy light flares to LensFlare.
Added an option to fix the pivot position of the vehicle model while creating it.
Fixed incorrect close radius method on RTC_TrafficSpawner.
Added isNight to RTC_TrafficSpawner and RTC_CarController.
Added missing headlights to all demo vehicles.
Updated all prefabs and EasyRoads integration package.
Improved overall performance about %8 - %10.
Fixed missing horn source error.
Fixed few editor script bugs.
[V1.30]
Fixed incorrect layers on demo vehicles and other prefabs if your project includes other layers in the project settings.
Fixed incorrect random colors on multiple selected renderers.
Improved AI behavior and updated all demo vehicle prefabs.
Fixed miscalculation of the vehicle bounds if pivot position of the vehicle is not at Vector3.zero.
Improved performance by using LOD system for the RTC_CarController.
Fixed "Ignore Close Radius On Enable" wasn't working properly.
Added URP support. All demo materials can be converted directly from Tools --> BCG --> RTC --> URP --> Convert All Demo Materials To URP.
Fixed "Auto calculate distance and height" option on RTC_DemoCamera.
Fixed null ref error on missing vehicles, lanes, and waypoints in case you delete them at runtime.
Added new static methods to RTC for finding first and last waypoints of the target lane.
Added debug messages while working on editor.
Added summary to all fields and methods.
Added missing comments to the scripts.
Added icons to editor buttons.
Added checklist to the RTC_CarControllerEditor. You'll be able to see misconfiguration of the vehicle if exists.
Fixed other minor bugs.
[V1.20]
Added drivetrain components to the traffic vehicles (Engine, clutch, gearbox, and differential).
Added horn to the traffic vehicles.
Improved behavior of the traffic vehicles.
[V1.19]
Added multiple raycasts with frame based raycast order without performance loss.
Improved behavior of the traffic vehicles.
If interconnection lane doesn't support that vehicle type, that traffic vehicle won't use that lane.
Added reset traffic vehicle after upside down.
[V1.17]
Added new settings to the lights.
Added material emission to the lights.
Added indicator lights (as meshes) to the demo vehicle models.
Fixed incorrect sequence of the traffic lights.
Added TTL to the traffic vehicles. It can be used to disable crashed vehicles after X amount of time.
Updated demo scene.
Pickup model will be removed from the package on next update.
---[V1.15]
Added new methods to RTC class and explained all of them in the documentation.
Creating and managing lanes / waypoints at runtime or inside editor with API.
Fixed an issue where some lanes were not updating themselves after making changes on waypoints.
Added missing comments on some scripts.
Organized inspector panel of the RTC_CarController.
Vehicles have events now. You can directly invoke your own scripts with these events.
Added color randomizer to the traffic vehicles.
Added isNight bool to the traffic vehicles. They will be using headlights at night.
Fixed other minor bugs.
[V1.1]
Added new vehicle models (Sedan, Taxi, Bus, Van, Exotic) with new vehicle types.
Added EasyRoads integration. Now you can create your lanes on your roads with one click.
One way and two ways lane generation.
Added new methods to RTC class to create new lanes and waypoints at runtime or inside editor.
Added hide gizmos of middle waypoints on the lane option.
Added can crash option to vehicles.
Fixed other minor bugs.
[V1.05]
Added vehicle types (Light, medium, heavy). Each lane has unique vehicle types now. RTC_TrafficSpawner will spawn traffic vehicles on proper lanes.
Traffic vehicles can pass the obstacles, or takeover the lane.
Added wait time to waypoints. Traffic vehicles can wait X amount of time at certain waypoints.
Added RTC_DontSpawnAround. RTC_TrafficSpawner won't spawn traffic vehicles close to them.
Added "RTC_TrafficLights" and "RTC_Ground" layers. These layers will be added to your project settings automatically.
Fixed a miscalculation of directions on various vehicle models.
Fixed other minor bugs.