Instance Property

maxAcceleration

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

Declaration

var maxAcceleration: Float { get set }

Discussion

When an agent evaluates the goals listed in its behavior property, the result is an acceleration vector that changes the position and direction of the agent. If the magnitude of that vector, in units per second per second, is greater than this value, its effect is limited to this value. An agent with a low maximum acceleration will be slow to change speed and direction; an agent with a high maximum acceleration can start moving, stop, and turn more quickly.

See Also

Constraining an Agent’s Movement

var mass: Float

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

var maxSpeed: Float

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

var radius: Float

The agent’s radius.