XRFrame.getPose()

Draft
This page is not complete.

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

The getPose() method of the XRFrame interface turns an XRPose object representing the relative relationship between any two XRSpace objects. 

For example, to get the position of a controller relative to the viewer's head, you would compare the XRInputSource.gripSpace to a "viewer" XRReferenceSpace.

Syntax

var xrPose = XRFrame.getPose(space, baseSpace);

Parameters

space
An XRSpace specifying the space you want a pose for.
baseSpace
An XRSpace specifying the space the pose should be relative to.

Return value

An XRPose.

Exceptions

None.

Specifications

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

Browser compatibility

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

Document Tags and Contributors

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