Instance Property

radius

The agent’s radius.

Declaration

@property(nonatomic) float radius;

Discussion

Goals that involve an agent’s position relative to other agents make use of this property. For example, a goal created with the goalToAvoidAgents:timeBeforeCollisionToAvoid: method will attempt to move an agent such that its radius does not overlap with those of the other specified agents.

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.

maxSpeed

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