<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARRaycastQuery/TargetAlignment-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:@E@ARRaycastTargetAlignment"
  },
  "title" : "ARRaycastQuery.TargetAlignment"
}
-->

# ARRaycastQuery.TargetAlignment

A specification that indicates a target’s alignment with respect to gravity

```
enum TargetAlignment
```

## Discussion

A raycast ignores potential targets with an alignment different than the one you specify in the raycast query.

---

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)