A microscopic agent based traffic simulation made in Unreal. This project is based on existing traffic simulators (e.g. SUMO, VISSIM and Aimsun). The goal was to create a small town with autonomous drivers.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
I created this in a couple of steps. I started with an overtaking case study. This meant that I had to implement a car following algorithm and an overtaking behavior. I used a distance based car following model for this. Agents will check for a possible gain in velocity every calculation step. If they can gain velocity by changing lanes they will check if there is a big enough gap available in the target lane to move to.
​
Next up I implemented pathfinding to get agents to destination nodes.This takes all lanes into account using Dijkstra's algorithm.
​
I then made a mandatory lane change model which uses this pathfinding to get in the correct lane to take a turn.
​
The intersection model I use can be reused for every possible situation where priorities happen. It compares the estimated times of arrival of every approaching car and lets cars which would collide stop if they are on a lower priority road.
​