Explorar el Código

orbitControls getAngle fix (#8702)

mlknz hace 9 años
padre
commit
42a2cf7bac
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
 
 	};