XRFrame
Implements
Implemented by
Index
Constructors
Properties
Methods
Properties
Readonly
session
Readonly
predicted Display Time
predictedDisplayTime: number
Optional
tracked Anchors
Optional
create Anchor
Optional
Readonly
detected Planes
Optional
Readonly
detected Meshes
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.
Optional
get Joint Pose
Methods
get Pose
get Viewer Pose
getViewerPose(referenceSpace: XRReferenceSpace): undefined | XRViewerPose
Provides the pose of the viewer relative to referenceSpace as an XRViewerPose, at the XRFrame's time.
Parameters
referenceSpace: XRReferenceSpace
Returns undefined | XRViewerPose
get Hit Test Results
getHitTestResults(hitTestSource: XRHitTestSource): XRHitTestResult[]
Parameters
hitTestSource: XRHitTestSource
Returns XRHitTestResult[]
get Hit Test Results For Transient Input
getHitTestResultsForTransientInput(
hitTestSource: XRTransientInputHitTestSource,
): XRTransientInputHitTestResult[]
Parameters
hitTestSource: XRTransientInputHitTestSource
Returns XRTransientInputHitTestResult[]
get Depth Information
getDepthInformation(view: XRView): undefined | null | XRCPUDepthInformation
Parameters
view: XRView
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.