Performs a ray cast, where a ray is cast into the scene from the center of the camera through a point in the view, and the results are immediately returned.
- iOS 13.0+
- Xcode 11.0+
A point in the view’s local coordinate system.
The type of target where the ray should terminate.
The alignment of the target.
A list of ray-cast results, sorted from nearest to farthest from the camera. The list is empty if the ray cast fails.