浏览代码

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 );
 					    var mesh = new THREE.Mesh( geometry, material );
-					    mesh.rotation.x = 90;
+					    mesh.rotation.x = 90 * ( Math.PI / 180 );
 
 
 					    scene.add(mesh);
 					    scene.add(mesh);