XRFrame:trackedAnchors 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
XRFrame 接口的 trackedAnchor 只读属性返回包含当前帧中仍在跟踪的所有锚点的 XRAnchorSet 对象。
值
XRAnchorSet 对象。
示例
>更新锚点
js
for (const anchor of frame.trackedAnchors) {
const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}
规范
| Specification |
|---|
| WebXR Anchors Module> # dom-xrframe-trackedanchors> |
浏览器兼容性
Loading…