• ProjectsGodot 4.X
  • GDExtension Neural Network + Evolutionary Algorithms using OpenNN and OpenGA

I want to create an in-game vehicle that I give some training data to by simply driving around a track, but then have an evolutionary algorithm learn to improve upon that. So far I have a basic vehicle controller in GDScript, but I want to rewrite it using GDExtension so that I can use OpenNN and OpenGA. I'm thinking of having raycasts emanate from the vehicle to determine what is near the vehicle, and having the driving target be the next corner in the track. I'm thinking until I'm ready to start implementing AI, I should mock up everything in GDScript, get a racing game going. When I am ready to implement the NN/GA, will I have to rewrite all of the GDScript code, or is there a way I can have the two operating together? I remember when using GDNative, I couldn't combine the two. Also, is there a good tutorial for creating a race track in Godot 4?