Skip to content

🤖 Creation of an RL environment with Unity, where an agent must learn to survive by moving 🦿 and shooting🔫, using ML-Agents !

Notifications You must be signed in to change notification settings

AmineZouitine/RL_Shooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

🔫 Welcome to the RL_Shooter ! 🔫

ShooterAIVid.mp4

In this RL project on Unity, the little green robot (the agent) has to survive as long as possible in front of red robots that run at him. If he is in contact with one of them, he loses. The agent can shoot a green bullet that bounces on the walls (5 times max), he can shoot every 2 seconds, moreover he can move and rotate freely.

Random card generation

FotoJet The map can be totally randomly generated, choosing obviously its size, the obstacle ratio (0 to 1), the number of enemies per second, the size of the obstacles etc..

Enemy chases the agent with a Navmesh

Nav Often in this kind of situation where the map is randomly generated and we want entities to be able to move in a natural way from a point A to a point B, the NavMesh is often the best solution (even if quite expensive)

Shooting

2021-04-28.09-47-53.mp4

The agent can shoot a bullet every 2 seconds, this one must bounce in a realistic way in the environment. After a lot of tests, my last test seems to work the best, even if I'm thinking about another logic that could avoid sometimes some hazardous behavior.

About

🤖 Creation of an RL environment with Unity, where an agent must learn to survive by moving 🦿 and shooting🔫, using ML-Agents !

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages