- Home /
Recommendations for AI Driving in Game
Hello everyone. I have a question regarding recommendations for AI driving in Edys driving Physics. I am making a simulation game and i was wondering what the best way to have ai drivers driving around in my game. I want them be driving around/following a path while i drive around. Similar to grand theft auto. I have bought edys driving physics and was wondering how i could implement something like this into that.
Maybe Simple Waypoint System or AIDriver toolkit. I need an idea for the best way to approach this.
Answer by MakeCodeNow · Feb 14, 2014 at 03:11 AM
Most commercial games use pre-authored splines that the AI cars follow. Some splines will be for expert drivers, others for crappier drivers. Lots of games also use "rubber banding" where the AI speed is adjusted based on how well or poorly you're doing. Often the AI cars aren't using "real" physics at all, and are what Unity would call kinematic. Sometimes they will get real physics when you ram them, and then they have have some simple logic to get back on their path.
If you want AI that drive cars with "real physics" by controlling the steering, acceleration, and braking inputs, then that's much more complex. Start by looking into PID controllers.
Also, the Game Programming Gems and AI Wisdom books have a few chapters on racing game AI.
Thanks $$anonymous$$ake CodeNow for the reply. This game isnt going to be very professional and i am a noob. I just need a couple cars. that will follow a path. Is there something i can buy or download that will make this easier?
I'm not aware of anything exactly like what you want, but check out the Unity Hermite Spline Controller
Your answer
Follow this Question
Related Questions
Can you use NavMesh agents to vary driving/handling model? 0 Answers
update loop + object graphs 1 Answer
RAIN AI motion detection limiting the visual sensor 2 Answers
Simulating Combat Results 1 Answer
Can Drone captured point clouds be used as part of a simulation environment to train AI Agents? 0 Answers