makeRaycastQuery(from:allowing:alignment:)
Creates a ray-cast query originating from a point in the view, centered on the camera’s field of view.
Declaration
@MainActor @preconcurrency func makeRaycastQuery(from point: CGPoint, allowing target: ARRaycastQuery.Target, alignment: ARRaycastQuery.TargetAlignment) -> ARRaycastQuery?Parameters
- point:
A point in the view’s coordinate system.
- target:
The type of target where the ray should terminate.
- alignment:
The alignment of the target.
Return Value
A query result.