GKObstacle
The abstract base class for objects representing impassable areas in a game world.
Declaration
class GKObstacleOverview
You do not use this class directly; instead, create instances of its concrete subclasses GKCircleObstacle, GKSphereObstacle, and GKPolygonObstacle. To make agents (GKAgent objects) avoid obstacles, create a goal with the goalToAvoidObstacles:timeBeforeCollisionToAvoid: method.
To learn more about using goals and agents, see Agents, Goals, and Behaviors in GameplayKit Programming Guide.
For more information, see GameplayKit Programming Guide.