Searches for the specified object and removes it from the tree.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
The object to be removed from the tree.
true if the object was removed from the tree.
false if the specified object is not in the tree.
The tree does not directly reference its elements—octrees are optimized to search for elements based on spatial positions—so this method must exhaustively search the entire tree to find the object to remove. For quicker removal, keep a reference to the
GKOctree object returned when you add an object to the tree, and call the
remove(_: method instead.