tetreum / peque-traffic

Yet Another attempt to build a traffic system in Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview

General preview

Basic support for additive scenes

Basic support for additive scenes

PequeTraffic

Yet Another attempt to build a traffic system in Unity. Fork/Core from Game Dev Guide - Building a Traffic System in Unity Uses waypoint system rather than NavMesh.

Download

You've got 3 options:

  1. (Recommended for development) Clone this repo by using git clone https://github.com/tetreum/peque-traffic.git
  2. Download the entire repository as zip file and uncompress it somewhere else
  3. Download the unitypackage. (quite stupid as it's not production ready for any game)

Compatible Unity version

Check ProjectVersion.txt.

Usage

Please check the included demo scene & Game Dev Guide's youtube video.

Recommendations

  • Disable 3G gizmos for better editing

Features

  • Vehicle & pedestrian support
  • Basic support for additive scenes
  • Single/Dual direction lanes
  • Ability to set min&max speed for each lane
  • Semaphores
  • Etc..

ToDo

  • Make vehicles respect other entities space (partially done)
  • Make vehicle deacceleration more natural
  • Improve vehicle decision making when getting stuck
  • Make pedestrians respect other entities space
  • Go multithread

Changelog

  • Vehicles traffic
  • Semaphores
  • Root autoselection when opening WaypointManager
  • Multiple pedestrian prefabs
  • Character Navigation Controller
  • When creating new waypoints reuse previous created waypoints data (so you can go faster)
  • Etc..

About

Yet Another attempt to build a traffic system in Unity.


Languages

Language:C# 100.0%