Skip to content

Commit

Permalink
add local floor / bounded floor features
Browse files Browse the repository at this point in the history
  • Loading branch information
kasumi-1 committed Oct 29, 2024
1 parent b8ccac2 commit 1e00772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,17 @@ export default function Home() {
}

// TODO should hand tracking be required?
let optionalFeatures: string[] = ['hand-tracking'];
let optionalFeatures: string[] = [
'hand-tracking',
'local-floor',
];
if (immersiveType === 'immersive-ar') {
optionalFeatures.push('dom-overlay');
}

const sessionInit = {
optionalFeatures,
requiredFeatures: ['bounded-floor'],
domOverlay: { root: document.body },
};

Expand Down

0 comments on commit 1e00772

Please sign in to comment.