Browse Source

WebXRManager: Clarify parameter of getController()/getControllerGrip().

Mugen87 5 years ago
parent
commit
29230ce75d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/renderers/webxr/WebXRManager.js

+ 6 - 6
src/renderers/webxr/WebXRManager.js

@@ -49,14 +49,14 @@ function WebXRManager( renderer, gl ) {
 
 	this.isPresenting = false;
 
-	this.getController = function ( id ) {
+	this.getController = function ( index ) {
 
-		var controller = controllers[ id ];
+		var controller = controllers[ index ];
 
 		if ( controller === undefined ) {
 
 			controller = {};
-			controllers[ id ] = controller;
+			controllers[ index ] = controller;
 
 		}
 
@@ -72,14 +72,14 @@ function WebXRManager( renderer, gl ) {
 
 	};
 
-	this.getControllerGrip = function ( id ) {
+	this.getControllerGrip = function ( index ) {
 
-		var controller = controllers[ id ];
+		var controller = controllers[ index ];
 
 		if ( controller === undefined ) {
 
 			controller = {};
-			controllers[ id ] = controller;
+			controllers[ index ] = controller;
 
 		}