Explorar o código

Fixed rotation in degrees in deviceorientation example.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
3cdf7f5dc8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/misc_controls_deviceorientation.html

+ 1 - 1
examples/misc_controls_deviceorientation.html

@@ -79,7 +79,7 @@
 					    } );
 
 					    var mesh = new THREE.Mesh( geometry, material );
-					    mesh.rotation.x = 90;
+					    mesh.rotation.x = 90 * ( Math.PI / 180 );
 
 					    scene.add(mesh);