草案
此页面不完整。
安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
XRSpace
接口在
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
XRSpace
, at the time at which a given
XRFrame
takes place.
Numeric values such as pose positions are thus coordinates in the corresponding
XRSpace
, relative to that space's origin.
注意:
XRSpace
interface is never used directly; instead, all spaces are created using one of the interfaces based on
XRSpace
. At this time, those are
XRReferenceSpace
and
XRBoundedReferenceSpace
.
Below is a list of interfaces based on the
XRSpace
接口。
XRBoundedReferenceSpace
XRBoundedReferenceSpace
is always at floor level, with its X and Z coordinates typically defaulting to a location near the room's center.
XRReferenceSpace
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.
XRSpace
interface defines no properties of its own; however, it does inherit the properties of its parent interface,
EventTarget
.
XRSpace
interface provides no methods of its own. However, it inherits the methods of
EventTarget
, its parent interface.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebXR 设备 API
The definition of 'XRSpace' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
XRSpace
|
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 |
完整支持
不支持
XRSpace
Navigator.xr
WebGLRenderingContext.makeXRCompatible()
XR
XRBoundedReferenceSpace
XRFrame
XRInputSource
XRInputSourceArray
XRInputSourceEvent
XRInputSourcesChangeEvent
XRPose
XRReferenceSpace
XRReferenceSpaceEvent
XRRenderState
XRRigidTransform
XRSession
XRSessionEvent
XRView
XRViewerPose
XRViewport
XRWebGLLayer