• Stars
    star
    264
  • Rank 155,103 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple traffic simulation using Unity's Nav Mesh Components.

SimpleTraffic

alt text

A simple traffic simulation using Nav Mesh. Constrains NavMeshAgents within lanes between custom navigation sections. All traffic moves continuously between randomly selected destinations.

Requires Unity 2017.2+.

Road Vehicle Traffic:

  • Modular road section based randomized navigation
  • Junction logic
  • Obstactle logic

Pedestrian Traffic:

  • Point to point based randomized navigation
  • Junction crossing logic

Train Traffic:

  • Continuous navigation
  • Junction crossing logic

Junctions:

  • Crossroad
  • T Junction
  • Train Crossing
  • Pedestrian crossing

Debug

  • Junction logic gizmos
  • Vehicle traffic destination gizmos

Contains:

  • Simple traffic navigation logic
  • Nav Mesh Components
  • Demo scene

Credit: