I should have added the code sample to my original post. The code is working on the Rear Camera but does not return results on the Front Camera. I'm wondering if it is because of the direction of the ray. For the Front Camera, if rayCast is supported, maybe it requires the ray to be cast in the negative z direction? Thanks again for any assistance!
let raycastQuery: ARRaycastQuery? = sceneView.raycastQuery(
from: sceneView.center,
allowing: .estimatedPlane,
alignment: .any)
let rayresults: [ARRaycastResult] = sceneView.session.raycast(raycastQuery!)
print(rayresults)
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: