Class XRFrameAbstract

Implements

Implemented by

Constructors

Properties

session: XRSession
predictedDisplayTime: number
trackedAnchors?: XRAnchorSet
createAnchor?: ((pose: XRRigidTransform, space: XRSpace) => undefined | Promise<XRAnchor>)
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.

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.

getJointPose?: ((joint: XRJointSpace, baseSpace: XRSpace) => undefined | XRJointPose)

Methods

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

    Parameters

    Returns undefined | XRPose

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

    Parameters

    Returns undefined | XRViewerPose