Instance Property

mass

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

Declaration

var mass: Float { get set }

Discussion

The higher the value of this property, the slower the agent will be to respond to goals that change its speed or direction, and vice versa.

See Also

Constraining an Agent’s Movement

var maxAcceleration: Float

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

var maxSpeed: Float

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

var radius: Float

The agent’s radius.