Contents

GKBehavior

A set of goals that together influence the movement of an agent.

Declaration

class GKBehavior

Overview

By combining multiple goals (GKGoal objects) you can create complex behavior, such as groups of agents (GKAgent objects) that move together naturally. To assign a set of goals to an agent, use its behavior property.

To learn more about using goals and agents, see Agents, Goals, and Behaviors in GameplayKit Programming Guide.

Topics

Creating a Behavior

Managing a Behavior’s Set of Goals

Working with Goals Using Subscript Syntax

See Also

Agents, Goals, and Behaviors