Răsfoiți Sursa

Added 'hand-tracking' in VRButton. Need to change to options though

Fernando Serrano 5 ani în urmă
părinte
comite
d53b4f55c0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      examples/jsm/webxr/VRButton.js

+ 1 - 1
examples/jsm/webxr/VRButton.js

@@ -71,7 +71,7 @@ var VRButton = {
 					// ('local' is always available for immersive sessions and doesn't need to
 					// be requested separately.)
 
-					var sessionInit = { optionalFeatures: [ 'local-floor', 'bounded-floor' ] };
+					var sessionInit = { optionalFeatures: [ 'local-floor', 'bounded-floor', 'hand-tracking' ] };
 					navigator.xr.requestSession( 'immersive-vr', sessionInit ).then( onSessionStarted );
 
 				} else {