/Unity-Artificial-Intelligence-Programming-Fourth-Edition

Unity Artificial Intelligence Programming, Fourth Edition, Published by Packt.

Primary LanguageC#MIT LicenseMIT

Unity Artificial Intelligence Programming

Book Name

This is the code repository for [Unity Artificial Intelligence Programming](Packt UTM URL of the Book), published by Packt.

Add powerful, believable, and fun AI entities in your game with the power of Unity 2018!

What is this book about?

Developing Artificial Intelligence (AI) for game characters in Unity 2018 has never been easier. Unity provides game and app developers with a variety of tools to implement AI, from the basic techniques to cutting-edge machine learning-powered agents. Leveraging these tools via Unity's API or built-in features allows limitless possibilities when it comes to creating your game's worlds and characters.

This book covers the following exciting features: <First 5 What you'll learn points>

  • Create smarter game worlds and characters with C# programming
  • Apply automated character movement using pathfinding and steering behaviors
  • Implement non-player character decision-making algorithms using Behavior Trees and FSMs
  • Build believable and highly efficient artificial flocks and crowds
  • Create sensory systems for your AI with the most commonly used techniques

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

int throwDiceLoaded() { 
    Debug.Log("Throwing dice..."); 
      int randomProbability = Random.Range(1,101); 
      int diceResult = 0; 
      if (randomProbability < 36) { 
        diceResult = 6; 
      } 
      else { 
        diceResult = Random.Range(1,5); 
      } 
    Debug.Log("Result: " + diceResult); 
      return diceResult; 
  }

Following is what you need for this book: This book is intended for Unity developers with a basic understanding of C# and the Unity editor. Whether you're looking to build your first game or are looking to expand your knowledge as a game programmer, you will find plenty of exciting information and examples of game AI in terms of concepts and implementation.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1 - 11 Unity 2018.2 Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Authors

Dr. Davide Aversa Dr. Davide Aversa holds a Ph.D. in Artificial Intelligence and an M.Sc. in Artificial Intelligence and Robotics from the University of Rome "La Sapienza" in Italy. He has a strong interest in Artificial Intelligence for the development of Interactive Virtual Agents and Procedural Content Generation (PCG). He serves at the PC of videogame-related conferences such as the IEEE Conference on Computational Intelligence and Games (CIG) and he also is regularly participating in game-jam contests. He also writes a blog on Game Design and game development.

Aung Sithu Kyaw Aung Sithu Kyaw is passionate about graphics programming, creating video games, writing, and sharing knowledge with others. He holds an MSc degree in digital media technology from the Nanyang Technological University (NTU), Singapore. He worked as a research associate, which involved implementing a sensor-based real-time movie system using Unreal Development Kit. In 2011, he founded a tech start-up focusing on interactive media productions and backend server-side technologies.

Clifford Peters Clifford Peters is a programmer and a computer scientist. He has reviewed the following Packt Publishing books: Unity Game Development Essentials, Unity 3D Game Development by Example Beginner's Guide, Unity 3 Game Development Hotshot, Unity 3.x Game Development by Example Beginner's Guide, Unity iOS Game Development Beginner's Guide, and Unity iOS Essentials.

Other books by the authors

Suggestions and Feedback

Click here if you have any feedback or suggestions.