소스 검색

Added header to ViveController.

Mr.doob 9 년 전
부모
커밋
36a08d9aa9
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      examples/js/ViveController.js

+ 5 - 2
examples/js/ViveController.js

@@ -1,15 +1,18 @@
+/**
+ * @author mrdoob / http://mrdoob.com
+ */
+
 THREE.ViveController = function ( id ) {
 
 	THREE.Object3D.call( this );
 
+	var scope = this;
 	var gamepad;
 
 	this.getGamepad = function () { return gamepad; };
 	this.matrixAutoUpdate = false;
 	this.standingMatrix = new THREE.Matrix4();
 
-	var scope = this;
-
 	function update() {
 
 		requestAnimationFrame( update );

粤ICP备19079148号