MDN Web Docs

Interfaces based on XRSpace

Below is a list of interfaces based on the XRSpace interface.

XRBoundedReferenceSpace

Represents a reference space which may move within a region of space whose borders are defined by an array of points laid out in clockwise order along the floor to define the passable region of the space. The origin of an XRBoundedReferenceSpace is always at floor level, with its X and Z coordinates typically defaulting to a location near the room's center.

XRReferenceSpace

Represents a reference space which is typically expected to remain static for the duration of the XRSession. While objects may move within the space, the space itself remains fixed in place. There are exceptions to this static nature; most commonly, an XRReferenceSpace may move in order to adjust based on reconfiguration of the user's headset or other motion-sensitive device.

XRJointSpace

Represents the space of an XRHand joint.

Instance properties

The XRSpace interface defines no properties of its own; however, it does inherit the properties of its parent interface, EventTarget.

Instance methods

The XRSpace interface provides no methods of its own. However, it inherits the methods of EventTarget, its parent interface.

Specifications

Specification
WebXR Device API
# xrspace-interface

Browser compatibility

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗