Skip to content

Commit

Permalink
add reset event to room-scale sample
Browse files Browse the repository at this point in the history
  • Loading branch information
cabanier authored and toji committed Aug 29, 2024
1 parent 32e765c commit 6c5a818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions room-scale.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
} else {
boundsRenderer.boundedRefSpace = refSpace;
}

refSpace.onreset = (evt) => {
boundsRenderer.boundedRefSpace = evt.referenceSpace;
}
}).catch(() => {
// If a bounded reference space isn't supported, fall back to a
// local-floor reference space. This still provides a floor-relative
Expand Down

0 comments on commit 6c5a818

Please sign in to comment.