Contents

maxSpeed

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

Declaration

var maxSpeed: Float { get set }

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

Related Documentation

Constraining an Agent’s Movement