Provides information about a TrackedMesh surface hit during a raycast. Is returned in an array when calling DeviceTracking.hitTestWorldMesh() or DeviceTracking.raycastWorldMesh().

interface TrackedMeshHitTestResult {
    classification: TrackedMeshFaceClassification;
    mesh: TrackedMesh;
    normal: vec3;
    position: vec3;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

Returns the classification of the mesh face at the intersection point.

Returns the TrackedMesh that was hit.

normal: vec3

Returns the world space normal direction of the intersection point.

position: vec3

Returns the world space position of the intersection point.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean