Lens Scripting API

    Class TrackedMeshHitTestResult

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

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    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

    MMNEPVFCICPMFPCPTTAAATR