Self-Driving-Car-Simulation-using-Genetic-Algorithm-in-Unity-3D
In this project we have trained an evolving Neural network by using Genetic Algorithms in Unity Game Engine using the ML-agents provided by them. By repeated simulation of the agent in the environment, using this we have created an agent which learns unique features from the environment based on its input and generates a forecast permitting the vehicle to drive without requiring external commands from the player. For simplicity purposes the ability of the agents to brake or reverse was not added.
Note- This project was created on Unity3D version 2018.2.14f1. You will need Barracuda package (ver 0.4).
The simulation environment was chosen to be a forested environment.
Closeup of the environment.
Raycasts emerging from the agents are used to calculate the distances from the obstacles and accordingly the agents turn without crashing.
A bunch of agents spawn at once in which many will crash however as the generation increases, the performance of the agents gets better as well.
This project was created as a fun project while exploring unity3d game engine and ml-agents.