Preparing for AI, and crash/on off track detection in general.

Because PaperRacers is inherently grid based, the common approach of making zones ( see Alex Brooks video below) can probably be exchanged for a dot based system.

Dot grid creation and detection of dots on the track are in. Now to see if I can come up with an algorithm for numbering these dots in a zone like manner…

Zoning in…

Fitting the dot grid and rotating the edge until its starts at the starting line.

 

Testing proximity based edge dots detection

Made a functioning edgewalker, YEAH!

 

Weighted Dots inherits the number of the inner dot they are closest to. This system can replace zones. Next step will be to assign information on how close to that inner dot they are so the AI can plan it’s evil deeds.

 

Alex Brooks  video on steering with AI: