Przeglądaj źródła

Adds method to zero VR sensors

Diego Marcos 10 lat temu
rodzic
commit
b996c620d4
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      examples/js/controls/VRControls.js

+ 8 - 0
examples/js/controls/VRControls.js

@@ -54,4 +54,12 @@ THREE.VRControls = function ( object, callback ) {
 
 	};
 
+	this.zeroSensor = function () {
+
+		if ( vrInput === undefined ) return;
+
+		vrInput.zeroSensor();
+
+	};
+
 };