Chapter 5. Agent Awareness

In this chapter, we will learn some algorithm recipes for simulating senses and agent awareness:

  • The seeing function using a collider-based system
  • The hearing function using a collider-based system
  • The smelling function using a collider-based system
  • The seeing function using a graph-based system
  • The hearing function using a graph-based system
  • The smelling function using a graph-based system
  • Creating awareness in a stealth game

Introduction

In this chapter, we will learn different approaches on how to simulate 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.

On 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 algorithms.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.233.153