瀏覽代碼

VRControls: Added resetPose()

Mr.doob 9 年之前
父節點
當前提交
7565b66499
共有 1 個文件被更改,包括 10 次插入3 次删除
  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();
 
 	};