HitResultNode

constructor(engine: Engine, xPx: Float, yPx: Float, planeTypes: Set<Plane.Type> = Plane.Type.values().toSet(), point: Boolean = true, depthPoint: Boolean = true, instantPlacementPoint: Boolean = true, 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)

Contruct an HitResultNode based on View coordinate hit test location

Parameters

xPx

X view coordinate in pixels where the hit test should be done

yPx

Y view coordinate in pixels where the hit test should be done

plane

Enable plane results

depth

Enable depth results

instant

Enable instant placement results

instantDistance

The distance at which to make the hit in case of instant result


constructor(engine: Engine, hitTest: HitResultNode.(Frame) -> HitResult?)