Lumberyard
User Guide (Version 1.16)

Using Smart Objects for AI Navigation

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn more about legacy features, see the Amazon Lumberyard Legacy Reference.

Smart Objects are an advanced type of AI Control Object that are used to interact with other objects using rules. Smart Objects can be used for AI movements that would otherwise be impossible to navigate within a mesh. Smart Objects can be used to have AI Agents duck, jump, rappel and kick down doors.

As an example, a Smart Object could be used for an agent running alongside the top wall of a building (first mesh) and then leaping onto a lamp post below (second mesh).

For an AI agent to be able to use a Smart Object, its AgentType definition should list one or more SmartObjectUserClasses.

When using a Smart Object, make sure its flow graph entrance (AI:SmartObjectHelper Start) and exit (AI:SmartObjectHelper End) helper points are within the two connected navigation meshes. They then automatically connect two meshes together when positioned correctly.

To set AI agent movement using Smart Objects

  1. In the Rollup Bar, click AI, SmartObject.

  2. Under SmartObject Properties, for SmartObjectClass, click the (...) icon.

  3. In Smart Object Classes, select your asset, and then select the desired movements