Ray casts
This page is a supplement to the AR Foundation Ray casts manual. The following sections only contain information about APIs where ARKit exhibits unique platform-specific behavior.
Tip
When developing an AR app, refer to both the AR Foundation documentation as well as the required packages for each platform you support.
Optional feature support
ARKit implements the following optional features of AR Foundation's XRRaycastSubsystem:
Feature | Descriptor Property | Supported |
---|---|---|
Viewport based raycast | supportsViewportBasedRaycast | Yes |
World based raycast | supportsWorldBasedRaycast | |
Tracked raycasts | supportsTrackedRaycasts | iOS 13+ |
Supported trackables
ARKit supports ray casting against the following trackable types:
TrackableType | Supported |
---|---|
BoundingBox | |
Depth | |
Face | |
FeaturePoint | Yes |
Image | |
Planes | Yes |
PlaneEstimated | Yes |
PlaneWithinBounds | Yes |
PlaneWithinInfinity | Yes |
PlaneWithinPolygon | Yes |
Note
Refer to AR Foundation Ray cast platform support for more information on the optional features of the Raycast subsystem.
Apple and ARKit are trademarks of Apple Inc., registered in the U.S. and other countries and regions.