A circular impassable area to be avoided by agents.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
To make agents (
GKAgent objects) avoid obstacles, create a goal with the
goal method. Agents affected by an avoid-obstacles goal will attempt to move such that their radius never overlaps that of a circular obstacle.