Devlog 1: Making a Half-Functional AI
Hello!
You'd think the AI part would come a bit later, but I guess not.
Setting it Up
After trying to get all of the machine learning packages set up, I'm convinced that the Unity (the game engine I'm using) devs don't actually know what they're doing. It took a whole day just to install the necessary components and another day to figure out how to use everything.
Fortunately, while I was going through this process, I came across one of the package's many examples, which proved to be quite amusing (Refer to "Man forgets how to walk.mp4").
Implementation
Implementation was (obviously) 10x harder. The ML system works by giving "reward" if the AI does something good and taking away "reward" if the AI does something undesirable (The reward is just a number!)
I tried to set up a checkpoint system where The AI would:
- Gain "reward" for successfully crossing checkpoints or finishing a lap
- Lose "reward" every few seconds to promote fast driving
Even with this code in place, they weren't driving (See Driving is Not Fun (Virtually))! It was all due to one. Simple. Misstep.
The roads didn't have colliders (And there weren't enough checkpoints)! After this, I waited for quite a long time (Machine Learning takes time!) and just like that, the AI was functional!
If you'd like to see how the AI progressed, check out "2 Days of ML Training." I will definitely be posting a release trailer for Rotor Drift in the next few days, so stay tuned!
That's all I have for now. Scram!
Get Rotor Drift
Rotor Drift
Steampunk Racing Simulator
Status | On hold |
Author | r3sgame |
Genre | Racing, Simulation |
Tags | 3D, artificial-intelligence, Cartoon, Fast-Paced, Local multiplayer, Physics, Steampunk, Unity |
Languages | English |
More posts
- Devlog 10: BurnoutAug 23, 2022
- Beta 2.0: Quality-of-Life and New Tracks!Aug 18, 2022
- Devlog 9: It's Time to Polish.Aug 16, 2022
- Rotor Drift Beta + Rotor AI 2.0!Aug 01, 2022
- Devlog 8: Designing Mediocre MapsJul 17, 2022
- Devlog 7: Getting Started With the New AI SystemJul 11, 2022
- Devlog 6: Rest in Peace, Machine LearningJul 09, 2022
- What Will Be In Rotor Drift Beta?Jul 06, 2022
- Devlog 5: Creating Questionable CarsJul 03, 2022
- Announcement: Rotor Drift Alpha!Jun 30, 2022
Leave a comment
Log in with itch.io to leave a comment.