Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Unity AI Programming Essentials

You're reading from  Unity AI Programming Essentials

Product type Book
Published in Dec 2014
Publisher
ISBN-13 9781783553556
Pages 162 pages
Edition 1st Edition
Languages
Author (1):
Curtis Bennett Curtis Bennett
Profile icon Curtis Bennett

An overview of driving


When designing AI for our characters, one of the basic concepts is to have AI move with the same rules as the player. If you ever played any old racing games, sometimes the opponent cars wouldn't follow the same physics as the player, zooming along unrealistically and therefore creating a bad player experience. So, it's important to take car physics into account, including the shape of the car and four wheels, and have the AI move in the same way as the player. This is the main reason for using an AI system especially designed for autos and driving, instead of a general-purpose game AI system we have been using such as RAIN.

The driving system we'll use is Smart Car AI by BoneBreaker, which at the time of writing this book is available in Unity Asset Store for $10. It takes into account physics for the car and uses ray casting to sense the car's environment. It actually uses two systems for navigation, which are Unity's built-in navigation system to determine paths...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}