interface IARHitTestResult (Niantic.ARDK.AR.HitTest.IARHitTestResult)

Overview

Information about a real-world surface found by examining a point in the device camera view of an AR session. More…

interface IARHitTestResult: IDisposable {
    // properties

    IARAnchor Anchor;
    float Distance;
    Matrix4x4 LocalTransform;
    ARHitTestResultType Type;
    float WorldScale;
    Matrix4x4 WorldTransform;
};

Detailed Documentation

Information about a real-world surface found by examining a point in the device camera view of an AR session.

Note

Use the IARFrame.HitTest method to get an array of ARHitTestResults.

Properties

IARAnchor Anchor

The anchor representing the detected surface, if any.

Note

May be null.

float Distance

The distance, in meters, from the camera to the hit test result.

Matrix4x4 LocalTransform

The position and orientation of the hit test result relative to the nearest anchor or feature point.

ARHitTestResultType Type

The kind of detected feature this result represents.

float WorldScale

The scaling factor applied to this hitTestResult’s data.

Matrix4x4 WorldTransform

The position and orientation of the hit test result relative to the world coordinate system.