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