Instance Property


The agent’s maximum forward speed, in units per second.


var maxSpeed: Float { get set }


When an agent evaluates the goals listed in its behavior property, the result is an acceleration vector that changes the velocity of the agent. If the magnitude of the new velocity is greater than this value, the velocity is reduced to match this value.

See Also

Constraining an Agent’s Movement

var mass: Float

The resistance of the agent to changes in speed or direction.

var maxAcceleration: Float

The upper limit to changes in the agent’s speed or direction.

var radius: Float

The agent’s radius.