ARRaycastResult
Information about a real-world surface found by examining a point on the screen.
Declaration
class ARRaycastResultOverview
If you use ARView or ARSCNView as your renderer, you can search for real-world surfaces at a screen point using the raycast(from:allowing:alignment:), and raycastQuery(from:allowing:alignment:) functions, respectively.
If you use a custom renderer, you can find real-world positions using screen points with:
The raycastQuery(from:allowing:alignment:) function of ARFrame.
The raycast(_:) function of ARSession.
For tracked raycasting, you call trackedRaycast(_:updateHandler:) on your app’s current ARSession.