Explorar el Código

Remove resetPose functionality.

Will be removed from spec going forward (handled at Platform level (or app)), better if just not present and relied upon.

See:
https://github.com/w3c/webvr/issues/189
https://bugs.chromium.org/p/chromium/issues/detail?id=706561
Michael Blix hace 8 años
padre
commit
abdd1713c6
Se han modificado 1 ficheros con 0 adiciones y 24 borrados
  1. 0 24
      examples/js/controls/VRControls.js

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

@@ -140,30 +140,6 @@ THREE.VRControls = function ( object, onError ) {
 
 	};
 
-	this.resetPose = function () {
-
-		if ( vrDisplay ) {
-
-			vrDisplay.resetPose();
-
-		}
-
-	};
-
-	this.resetSensor = function () {
-
-		console.warn( 'THREE.VRControls: .resetSensor() is now .resetPose().' );
-		this.resetPose();
-
-	};
-
-	this.zeroSensor = function () {
-
-		console.warn( 'THREE.VRControls: .zeroSensor() is now .resetPose().' );
-		this.resetPose();
-
-	};
-
 	this.dispose = function () {
 
 		vrDisplay = null;