An open API service indexing awesome lists of open source software.

https://github.com/andre-seiji/unity-drifting-ai

AI model trained for driving in Unity ml-agents
https://github.com/andre-seiji/unity-drifting-ai

drift ml-agents unity unity3d

Last synced: 5 months ago
JSON representation

AI model trained for driving in Unity ml-agents

Awesome Lists containing this project

README

          

# Unity-Drifting-AI
![Video9-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/ed5a9bae-f750-4a73-800c-017bbdcad4c6)

This is an experiment on AI learning to drive using the Unity ML-Agents.

Without giving any instructions, could the AI learn to complete a full lap in 30 seconds while managing a drift handling car?


##



Rules:

- A series of checkpoints (blue) were placed on the track and the agent gets rewarded everytime that goes through the correct checkpoint.
- If the agent goes through the incorrect checkpoint or hit the walls or barriers, it gets punished.
- Each episode lasts 30 seconds.

![Video4-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/10bf27f2-dffa-4d81-8e4d-18d5bb804a25)

The difficulty is avoiding the walls while not losing control of the car.

![Video1-ezgif com-video-to-gif-converter](https://github.com/user-attachments/assets/ce967bf4-5ba6-4c7c-a4d7-017517ba7a3a)

Finally, the AI is able to complete a full lap.



##

Car model: https://sketchfab.com/3d-models/toyota-corolla-ae86-trueno-fe02fba6302e450ea8424591493341ea

Track link: https://assetstore.unity.com/packages/3d/environments/roadways/modular-lowpoly-track-roads-free-205188