<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ARView/makeRaycastQuery(from:allowing:alignment:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:10RealityKit6ARViewC16makeRaycastQuery4from8allowing9alignmentSo09ARRaycastF0CSgSo7CGPointV_So0J6TargetVSo0jL9AlignmentVtF"
  },
  "title" : "makeRaycastQuery(from:allowing:alignment:)"
}
-->

# makeRaycastQuery(from:allowing:alignment:)

Creates a ray-cast query originating from a point in the view, centered
on the camera’s field of view.

```
@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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)