A Frame
holds data for augmenting the physical scene with the virtual scene.
frame.session: Session, read-only
A reference to the session.
frame.results: Iterable<TrackerResult>, read-only
Use this property to iterate through the results generated by the trackers.
Example
function animate(time, frame)
{
for(const result of frame.results) {
// ...
}
session.requestAnimationFrame(animate);
}
session.requestAnimationFrame(animate);