Creating an AI Car Driver Controller in Unity

preview_player
Показать описание
In this video we will be making a controller for our car that drives on it's own so the player can compete against the AI drivers.

Join our Discord:

Github Link:

TimeStamps:
00:00 Intro
00:39 Learning Racing Lines
03:12 Creating the waypoints
04:00 Braking Zones
05:19 Waypoint Container Script
08:12 Creating The Ai
10:26 Following The Route
13:44 AI Steering
16:24 Controlling The Gas Input
19:08 Controlling The Brakes
28:43 Testing The AI
29:56 Racing Against The AI
Рекомендации по теме
Комментарии
Автор

Thank you! Great videos! there is not much content on vehicle physics, please keep up the great work!

th_Vertex
Автор

its SO amazing how I can combine this and your "Making a Drift Game, Drifting Score" video. Goodjob I'm a big fan of this series!

skmp
Автор

Man, I've been following your tutorials for a while now and so far I think you're the only one that produces both advanced and easy to understand tutorials for beginners, with consistency. You DEFINITELY deserve more than just <10k views average. You help me a ton!

Also, maybe you can do a tutorial for a garage system in the future, where you can buy and equip various cars. And maybe even a basic color customization system too.

evolvedSpoiler
Автор

Mate I just want to say your videos are excellent and have helped me so much. Thank you

minimme
Автор

Great job, may I ask what version of Unity Editor you are using?

keyhaven
Автор

Thank you! You have a great realistic car controller! It would be helpful if you added nitro acceleration and police pursuit.

VsevolodPankratov
Автор

what about open world city traffic? i have to place waypoints everywhere?

gioabashidze
Автор

why not use atan2 for the steer angle? the ai would get a much more precise steering capability.

MorninCupofHate
Автор

Are you available for small freelance projects

satchithkp
Автор

Great video, I'm having trouble simulating engine and transmission for my car system

eliezeralisson
Автор

Would be cool if you could implement a multiplayer feature as well But great video.

dhinakaran
Автор

theres simpler way to get childs without main object, you could just write
foreach (Transform child in transform)
{
waypoints.Add(child);
}

dxvilthedude