Sfoglia il codice sorgente

Adds method to zero VR sensors

Diego Marcos 10 anni fa
parent
commit
b996c620d4
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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();
+
+	};
+
 };