Enumerates all the physics bodies in the scene that intersect a ray.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The starting point for the ray in scene coordinates.
The ending point for the ray in scene coordinates.
A block to be called for each physics body that the ray touches. The block takes the following parameters:
The physics body that the ray intersected.
The point in scene coordinates where the ray contacted the physics body.
The normal vector for the physics body at the point of contact.
A pointer to a Boolean variable. Your block can set this to
trueto terminate the enumeration.