Browse Source

orbitControls getAngle fix (#8702)

mlknz 9 years ago
parent
commit
42a2cf7bac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/controls/OrbitControls.js

+ 2 - 2
examples/js/controls/OrbitControls.js

@@ -86,13 +86,13 @@ THREE.OrbitControls = function ( object, domElement ) {
 
 	this.getPolarAngle = function () {
 
-		return phi;
+		return spherical.phi;
 
 	};
 
 	this.getAzimuthalAngle = function () {
 
-		return theta;
+		return spherical.theta;
 
 	};