Game Development Reference
In-Depth Information
Sensing - vision
No matter how clever our AI is, it needs some senses to become aware of its surroundings.
In this recipe, we'll accomplish an AI that can look in a configurable arc in front of it, as
shown in the following screenshot. It will build upon the AI control from the previous re-
cipe, but the implementation should work well for many other patterns as well. The follow-
ing screenshot shows Jaime with a visible representation of his line of sight:
Search WWH ::




Custom Search