Preparing search index...

    Class TrackedPlane

    A representation for plane detected by native tracking. Can be used with TrackedPoint.

    // @input Component.RenderMeshVisual renderMeshVisual

    script.createEvent("WorldTrackingPlanesAddedEvent").bind(function (eventData) {
    var eventPlanes = eventData.getPlanes();

    for (var i = 0; i < eventPlanes.length; i++) {
    var eventPlane = eventPlanes[i];

    script.renderMeshVisual.mesh = eventPlane.mesh;
    }
    });

    Hierarchy (View Summary)

    Index

    Properties

    isValid: boolean

    Whether the detected plane is still available to utilize

    Lens Scripting Version 144

    A coarse mesh describing the shape of the tracked plane. Can be displayed by RenderMeshVisual

    Lens Scripting Version 144

    Returns the orientation of the detected plane, either vertical or horizontal.

    Lens Scripting Version 144

    pivot: vec3

    The center point of the detected plane

    Lens Scripting Version 144

    size: vec3

    The size of the detected plane, where it is described as width, 0, depth

    Lens Scripting Version 144

    transform: mat4

    The position, rotation, and scale of the detected plane

    Lens Scripting Version 144

    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