Ver Fonte

VRControls: Added resetPose()

Mr.doob há 9 anos atrás
pai
commit
7565b66499
1 ficheiros alterados com 10 adições e 3 exclusões
  1. 10 3
      examples/js/controls/VRControls.js

+ 10 - 3
examples/js/controls/VRControls.js

@@ -91,7 +91,7 @@ THREE.VRControls = function ( object, onError ) {
 
 	};
 
-	this.resetSensor = function () {
+	this.resetPose = function () {
 
 		if ( vrInput ) {
 
@@ -115,10 +115,17 @@ THREE.VRControls = function ( object, onError ) {
 
 	};
 
+	this.resetSensor = function () {
+
+		console.warn( 'THREE.VRControls: .resetSensor() is now .resetPose().' );
+		this.resetPose();
+
+	};
+
 	this.zeroSensor = function () {
 
-		console.warn( 'THREE.VRControls: .zeroSensor() is now .resetSensor().' );
-		this.resetSensor();
+		console.warn( 'THREE.VRControls: .zeroSensor() is now .resetPose().' );
+		this.resetPose();
 
 	};