XRFrame.getViewerPose()

Draft
This page is not complete.

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The XRFrame.getViewerPose() method of the XRFrame interface returns an XRViewerPose corresponding to the viewer's pose in a given XRReferenceSpace.

Syntax

var xrViewerPose = XRFrame.getViewerPose(referenceSpace);

Parameters

referenceSpace
The current XRReferenceSpace.

Return value

A XRViewerPose.

Exceptions

InvalidStateError
A DOMException indicating that getViewerPose() was not called within the context of a callback to an XRSession.getAnimationFrame().

Specifications

Specification Status Comment
Unknown
The definition of 'XRFrame.getViewerPose' in that specification.
Unknown Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.XRFrame.XRFrame.getViewerPose" (depth: 1) to the MDN compatibility data repository.

Document Tags and Contributors

Contributors to this page: jpmedley
Last updated by: jpmedley,