Instance Property

maxSpeed

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

Declaration

@property(nonatomic) float maxSpeed;

Discussion

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

mass

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

maxAcceleration

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

radius

The agent’s radius.