Initializer

init(radius:)

Initializes a circular obstacle with the specified radius.

Declaration

init(radius: Float)

Parameters

radius

The radius for the new obstacle.

Return Value

A circular obstacle.

Discussion

To make agents avoid the obstacle, create a goal with the goalToAvoidObstacles:timeBeforeCollisionToAvoid: method.

See Also