Causes the agent to evaluate its goals and update its position, rotation, and velocity accordingly.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The time step for which to update the simulation; typically, the amount of time elapsed since you last called this method.
You call this method directly on an individual agent, or on all the agents in your game through a
GKComponent object, whenever you want to run a step of the agent simulation. Typically, a game updates its agent simulation whenever it prepares to draw a new frame—for example, in the
update(_:) method of a SpriteKit