A downloadable asset pack

Buy Now$3.99 USD or more

City traffic with no navmesh. Cars follow a graph of waypoints on two-way roads, turn at crossings and slow down when a car or the player is in front of them.

Features

  • One-way waypoint links set the road direction
  • Cars pick a destination and find a route (BFS)
  • Smooth turns and braking with an overlap check
  • Spawner with car count and random colors
  • Waypoint gizmo arrows in the Scene view

Demo scene controls

  • WASD move, Shift run, Space jump, Mouse orbit camera
  • Stand in front of a car and it slows down

What's included

  • Waypoint, CarAI, CarSpawner scripts
  • Low-poly car prefab
  • Town demo scene with roads and crossings
  • Full C# source code with comments
  • README with setup steps
  • Original low-poly art made by us: use it in your games, commercial too
  • Nunito font (SIL Open Font License)

Requirements

  • Unity 6 (6000.3) or newer
  • Universal Render Pipeline (URP)
  • Input System package (included in new Unity 6 projects)
  • Needed tags and layers are created automatically on import

Development status

This template is still in development and gets updates. Files are versioned: download the newest one.

  • v0.2.0: new art and demo scene, new UI, bug fixes, simpler code, English docs
  • v0.1.0: first release

Questions or requests? Leave a comment and we'll help.

Purchase

Buy Now$3.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $3.99 USD. You will get access to the following files:

Traffic System v0.2.0 - Unity 6 (source + demo) 2.1 MB

Leave a comment

Log in with itch.io to leave a comment.