Selva Compute API Reference - v1.1.2
    Preparing search index...

    Class XRFrameAbstract

    Implements

    Implemented by

    Index

    Constructors

    Properties

    createAnchor?: (pose: XRRigidTransform, space: XRSpace) => Promise<XRAnchor>

    Creates a new anchor using the given pose in the given reference space.

    By creating an anchor from frame, the created anchor will not be attached to any particular real world object.

    If the frame is not active, the promise will be rejected with a InvalidStateError.

    detectedMeshes?: XRMeshSet

    XRFrame is extended to contain detectedMeshes attribute which contains all meshes that are still tracked in the frame.

    The set is initially empty and will be populated by the update meshes algorithm. If this attribute is accessed when the frame is not active, the user agent MUST throw InvalidStateError.

    detectedPlanes?: XRPlaneSet

    XRFrame is extended to contain detectedPlanes attribute which contains all planes that are still tracked in the frame.

    The set is initially empty and will be populated by the update planes algorithm. If this attribute is accessed when the frame is not active, the user agent MUST throw InvalidStateError.

    getJointPose?: (
        joint: XRJointSpace,
        baseSpace: XRSpace,
    ) => XRJointPose | undefined
    predictedDisplayTime: number
    session: XRSession
    trackedAnchors?: XRAnchorSet

    All anchors tracked in the frame.

    At XRFrame creation, the set is initially empty and will be populated by the update anchors algorithm.

    Methods

    • Provides the pose of space relative to baseSpace as an XRPose, at the time represented by the XRFrame.

      Parameters

      Returns XRPose | undefined

    • Provides the pose of the viewer relative to referenceSpace as an XRViewerPose, at the XRFrame's time.

      Parameters

      Returns XRViewerPose | undefined