hitTestAR

fun hitTestAR(xPx: Float = width / 2.0f, yPx: Float = height / 2.0f, planeTypes: Set<Plane.Type> = setOf(), point: Boolean = false, depthPoint: Boolean = false, instantPlacementPoint: Boolean = false, trackingStates: Set<TrackingState> = setOf(TrackingState.TRACKING), pointOrientationModes: Set<Point.OrientationMode> = setOf(Point.OrientationMode.ESTIMATED_SURFACE_NORMAL), planePoseInPolygon: Boolean = true, minCameraDistance: Pair<Camera, Float>? = null, predicate: (HitResult) -> Boolean? = null): HitResult?

Performs a ray cast to retrieve the ARCore info at this camera point.

By default the latest session frame is used.

Return

the hitResult or null if no info is retrieved