The AI sensory systems emulate senses such as perspectives, sounds, and even scents to track and identify objects. In game AI sensory systems, the agents will have to examine the environment and check for such senses periodically based on their particular interest.
The concept of a basic sensory system is that there will be two components: Aspect
and Sense
. Our AI characters will have senses, such as perception, smell, and touch. These senses will look out for specific aspects such as enemy and bandit. For example, you could have a patrol guard AI with a perception sense that's looking for other game objects with an enemy aspect. Or it could be a zombie entity with a smell sense looking for other entities with an aspect defined as brain.
For our demo, this is basically what we are going to implement: a base interface called Sense
that will be implemented by other custom senses. In this chapter, we'll implement perspective and touch senses. Perspective is what animals...