Преглед изворни кода

Fixed rotation in degrees in deviceorientation example.

Mr.doob пре 11 година
родитељ
комит
3cdf7f5dc8
1 измењених фајлова са 1 додато и 1 уклоњено
  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);