安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
XRReferenceSpaceEventInit
property
transform
indicates the position and orientation of the affected reference space's native origin after the changes the event represents are applied.
transform
is defined using the old coordinate system, which allows it to be used to convert coordinates from the pre-event coordinate system to the post-event coordiante system.
let eventInitDict = {
referenceSpace: xrReferenceSpace,
transform: xrRigidTransform
});
XRRigidTransform
object providing a transform that can be used to convert coordinates from the pre-event coordinate system to the post-event coordinate system.
This simple snippet calls the constructor to create a new reference space event of type
reset
.
let refSpaceEvent = new XRReferenceSpaceEvent("reset", {
referenceSpace: myRefSpace,
transform: myTransform
});
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebXR 设备 API
The definition of 'XRReferenceSpaceEventInit.transform' in that specification. |
工作草案 | 初始定义。 |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.XRReferenceSpaceEventInit.transform" (depth: 1) to the MDN 兼容性数据存储库 .
XRReferenceSpaceEventInit
referenceSpace
transform
Navigator.xr
WebGLRenderingContext.makeXRCompatible()
XR
XRBoundedReferenceSpace
XRFrame
XRInputSource
XRInputSourceArray
XRInputSourceEvent
XRInputSourcesChangeEvent
XRPose
XRReferenceSpace
XRReferenceSpaceEvent
XRRenderState
XRRigidTransform
XRSession
XRSessionEvent
XRSpace
XRView
XRViewerPose
XRViewport
XRWebGLLayer