Enumerates all the physics bodies in the scene that contain a point.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A point in scene coordinates.
A block to be called for each physics body that contains the point. The block takes the following parameters:
The physics body that the ray intersected.
A pointer to a Boolean variable. Your block can set this to
trueto terminate the enumeration.