XRRigidTransform

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The XRRigidTransform is a WebXR API interface that represents 3D geometric transform described by a position and orientation.

Attributes

XRRigidTransform.position Read only
A DOMPointReadonly 3-dimensional point, expressed in meters, describing the translation component of the transform. The w attribute is always 1.0.
XRRigidTransform.orientation Read only  
A DOMPointReadonly quaternion describing the rotational component of the transform. The quaternion is always normalized to have a length of 1.0.
XRRigidTransform.matrix Read only  
Returns the transform expressed as Float32Array.
XRRigidTransform.inverse Read only  
Returns a XRRigidTransform which is the inverse of this transform. That is, if applied to an object that had been previously transformed by the original transform, it will undo the transform and return the original object.

Example

Specifications

Specification Status Comment
WebXR Device API
The definition of 'XRRigidTransform' in that specification.
Working Draft Initial definition.

Browser compatibility

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

Document Tags and Contributors

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