Introduction

In this chapter, we will learn different approaches to simulating sense stimuli on an agent. We will learn how to use tools that we are already familiar with to create these simulations, colliders, and graphs.

In the first approach, we will take advantage of ray casting, colliders, and the MonoBehaviour functions bound to this component, such as OnCollisionEnter, in order to leverage the need to acquire objects nearby in the three-dimensional world. Then, we will learn how to simulate the same stimuli using the graph theory and functions so that we can take advantage of this way of representing the world.

Finally, we'll learn how to implement agent awareness using a mixed approach that considers the previously learned sensory-level ...

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.