The abstract base class for objects representing impassable areas in a game world.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
You do not use this class directly; instead, create instances of its concrete subclasses
GKPolygon. To make agents (
GKAgent objects) avoid obstacles, create a goal with the goalToAvoidObstacles:timeBeforeCollisionToAvoid: method.