Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
/ peque-traffic Public archive

Yet Another attempt to build a traffic system in Unity.

Notifications You must be signed in to change notification settings

tetreum/peque-traffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Languages