2
0
Эх сурвалжийг харах

Added header to ViveController.

Mr.doob 9 жил өмнө
parent
commit
36a08d9aa9

+ 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 );