CarSim
- 5 Devlogs
- 7 Total hours
Top down car simulation
Top down car simulation
AI and stuff.
The learning algorithm is not perfect but it gets the job done. It uses five rays and its own velocity as input and outputs some steering and throttle value.
This thing wasn’t as hard as I expected and not complicated at all.
I also removed the rays since that was impacting performance a lot D:
The program is still kind of slow tho, I’ll have to fix that.
I have now changed the code a bit so that I can easily add multiple cars. The checkpoint system has also been changed so they are evenly spaced.
The car now measures the distance of five different rays coming out of it. This will be used later (maybe)
You can see the blue lines, they’re the rays
Since Stardance got extended and I need something to work on I’m doing this now.
Right now it’s just a turquoise rectangle that can be driven on the screen. There’s also a track that you can drive on.
I’m not sure what I should do in the future, something like training a program to drive on a track would be cool. Still a long way to go though.