Contents

init(radius:)

Initializes a spherical obstacle with the specified radius.

Declaration

init(radius: Float)

Parameters

  • radius:

    The radius for the new obstacle.

Return Value

A spherical obstacle.

Discussion

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