XRFrame
Implements
Implemented by
Index
Constructors
Properties
Methods
Properties
Readonlysession
Readonlypredicted Display Time
predictedDisplayTime: number
Optionaltracked Anchors
Optionalcreate Anchor
Optional Readonlydetected Planes
Optional Readonlydetected 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.
Optionalget Joint Pose
Methods
get Pose
get Viewer Pose
getViewerPose(referenceSpace: XRReferenceSpace): undefined | XRViewerPoseProvides 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 | XRCPUDepthInformationParameters
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.