The current velocity of the agent in 2D space.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An agent’s velocity is a calculated property—the velocity vector is determined by an agent’s facing direction (its
rotation property) and its
Running the Agent Simulation
Causes the agent to evaluate its goals and update its position, rotation, and velocity accordingly.