XRFrame: trackedAnchors property
WebXR Device API
WebXR Device API
The read-only trackedAnchor property of the XRFrame interface returns an XRAnchorSet object containing all anchors still tracked in the frame.
Value
An XRAnchorSet object.
Examples
Updating anchors
for (const anchor of frame.trackedAnchors) {
const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}