Skip to content

Commit

Permalink
enable hand tracking for AR and VR (#6069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksims authored Feb 20, 2024
1 parent c6d2005 commit a43fb13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/xr/xr-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ class XrManager extends EventHandler {
if (webgl && options && options.cameraColor && this.views.supportedColor) {
opts.optionalFeatures.push('camera-access');
}
} else if (type === XRTYPE_VR) {
opts.optionalFeatures.push('hand-tracking');
}

opts.optionalFeatures.push('hand-tracking');

if (options && options.optionalFeatures)
opts.optionalFeatures = opts.optionalFeatures.concat(options.optionalFeatures);

Expand Down

0 comments on commit a43fb13

Please sign in to comment.