Game Development Reference
In-Depth Information
Creating a reusable AI control class
In this recipe, we will create a control that is going to steer an AI character. Using
Con-
trol
to do this is beneficial since it can add the AI functionality and be used together with
Cameras and Game Controls
for both the player and AI characters by adding
AIControl
to its spatial. To get a quick and visual result, we'll apply it to the bullet-based
Better-
CharacterControl
class in this recipe.