XRAnchor: thuộc tính anchorSpace
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Thuộc tính chỉ đọc anchorSpace của giao diện XRAnchor trả về một đối tượng XRSpace để định vị anchor tương đối với các đối tượng XRSpace khác. Nó có thể được truyền vào XRFrame.getPose() sau đó.
Giá trị
Một đối tượng XRSpace.
Ví dụ
>Cập nhật các anchor
js
for (const anchor of frame.trackedAnchors) {
const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebXR Anchors Module> # dom-xranchor-anchorspace> |