Unity Traffic Simulation Project

A simulation for studing probability on a 4 way road

The Project

A Traffic systems based on Unity are made up from vehicles, junctions, and roads connecting to junctions with other junctions. A 4 way with 2 lane road can be combine with multiple vehicle directions. The whole system was implemented for a upcomming 4 road development. And ofcourse before working on the development, It's best to run some tests to see if the plan will work flowlessly and to see how much traffic the road can handle.

  • Allows to control the traffic direction
  • Traffic direction with the scenario(4 roads combination)
  • Multiple Traffic control system such as Automatic, Manual and Queue
  • Menu with the 4 directions
  • Reset current simulation scene
  • 4 different types of vehicle
  • Custimize each vehicle group
  • Custimize individual vehicle
  • Traffic lights can be controlled individually
  • Realistic mode, such as driver fault
  • Time counter and vehicle statistics
  • Custimize physics option for vehicle
  • Optimized for low end system

Core System

It supports 3 modes for passing vehicles. By default it use queue mode for passing vehicles but it can be change to Automatic and Custom mode. In custom mode use can able to control traffic at any time.

  • Queue Mode : First comes near to signal light will go first. We have used collider to detect which one came first.
  • Manual Mode : User have control over the traffic light and all vehicles will follow the rules of the user.
  • Automatic Mode : All 4 roads will switch the signal in 10 seconds. It can be changed from the script.
  • Customization : Vehicle speed and behavior can be changed from unity inspector, like :
    How they react to other vehicles.
    How fast they detect their destination.

Flexibility

The whole project can be imported easily inside Unity. Standard executable works on both PC and Mobile.

Good to talk

Feel free to ask if you need more information