Experimental AI in progress




So, I've been working on some stuff for my upcoming racing game.
And since it is a racing game then we need an AI, don't we?
So here it is! I've made 2 Basic AIs for a vehicle that everyone can use in their games since there is no way to find a proper tutorial about them other than context steering. However, context steering is not yet implemented so that cars will drive to their destination.
But let me put some light on a few things here. First of all, I'm currently working on two different AI systems.
- AI-based on node location
- AI-based on NavigationMesh and on a path that was generated by NavigationAgent3D
AI-based on node location is quite simple. It just tries to reach the location of a node in the X/Z plane. It is a great way to create Destruction Derby Gamemode since you can construct a State machine that will be changing its targets based on behaviour, and you can also use this to follow the player or in combination with Path3D and PathFollow3D to define a path for the vehicle
AI-based on NavigationMesh and NavigationAgent3D is more reliable in case of making traffic and racing track " Not Saying that AI Based on node location is not good for track building tho". However, in such cases it is more reliable in terms of generating a path and avoiding obstacles since it is based on the generated path in real time " Also it is based on NaviMesh and it will ignore areas that are not covered by it", this will make it perfect for racing tracks and allow more control over AI, also, it can be used to create traffic lines and adapted to State Machine, for example, if making Racing Sim and want AI cars to drive to a garage to refill fuel or change tyres, we can make a condition that will check if AI needs to refuel then if so, change the route to the nearest garage.
This will be it, for now, I will keep on cleaning up my code and soon it should be posted here and on my GitHub :)
Also, check out my Trello board to see what I am currently working on :D
Trello link: https://trello.com/b/Vg98cAQ8/madvanced-vehicle-system
Get Godot MAdvanced Vehicle Control
Godot MAdvanced Vehicle Control
Godot Advanced Vehicle Controller by Millu30
Status | In development |
Category | Tool |
Author | Gidan |
Tags | Asset Pack, Godot, sourcecode, Project template, Vehicles, vehicle-system |
More posts
- Godot 4.4 Supported now!84 days ago
- Experimental AI available now!Feb 13, 2025
Leave a comment
Log in with itch.io to leave a comment.