Press space to change tracks. Press P to toggle player control, then use the arrow keys to move. (useful for when the bot gets lost) Use W/S to change the opacity of the race track to be able to view the lines.
My first shared project in ages! Yippee!!! I made this project over the course of the week to create a new bot system for cars on a track. Unlike the ones I created before, it doesn't rely on pointing itself to a set position. Another additional bonus is that the car produces a tight racing line, ensuring really quick lap times! Note: I made some additional changes on the 27th of March which now shows the lines the bot calculates to determine its racing line. Lines starting from red are template lines, calculated by distance before anything else. The lines starting from green are the averages of the entire distance equation. The blue line calculates distance using the final result of the equation. The red-ish and green-ish lines calculate steering angles, whereas the blue line determines throttle and brake positions. tags: #cars #racing #robots #math #calculation #averages #means