소스 검색

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);