Explorar o código

VRControls: Added resetPose()

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
7565b66499
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  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();
 
 	};