Adds an object to the tree corresponding to the specified point in 3D space.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The object to add to the tree.
The point in 2D space to which the object corresponds.
The tree node containing the newly added object.
GKOctree class automatically creates nodes to manage the objects you add to the tree. If you expect to remove an element you’ve added, keep a reference to the node this method returns so you can use the
remove(_: method to remove that object quickly.