interface of the
WebXR 设备 API
is an abstract interface providing a common basis for every class which represents a virtual coordinate system within the virtual world, in which its origin corresponds to a physical location.
Spatial data in WebXR is always expressed relative to an object based upon one of the descendant interfaces of
, at the time at which a given
Numeric values such as pose positions are thus coordinates in the corresponding
, relative to that space's origin.
Below is a list of interfaces based on the
XRBoundedReferenceSpaceis always at floor level, with its X and Z coordinates typically defaulting to a location near the room's center.
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
XRReferenceSpacemay move in order to adjust based on reconfiguration of the user's headset or other motion-sensitive device.
interface defines no properties of its own; however, it does inherit the properties of its parent interface,
interface provides no methods of its own. However, it inherits the methods of
, its parent interface.
WebXR 设备 API
The definition of 'XRSpace' in that specification.
||Chrome 79||Edge 79||Firefox No||IE No||Opera No||Safari No||WebView Android No||Chrome Android 79||Firefox Android No||Opera Android No||Safari iOS No||Samsung Internet Android 11.2|