Instance Method

agentDidUpdate:

Tells the delegate that an agent has just performed a simulation step.

Declaration

- (void)agentDidUpdate:(GKAgent *)agent;

Parameters

agent

The agent object that has just performed a simulation step.

Discussion

Implement this method when you want to update a display based on the latest data from the agent simulation. Read the position and rotation properties of the agent (as a GKAgent2D or GKAgent3D object), then set the corresponding attributes of the object that provides the agent’s visual representation.

See Also

Synchronizing with Agents

- agentWillUpdate:

Tells the delegate that an agent is about to perform its next simulation step.