Browse Source

Exampels: Fix initial height of camera in pointerlock example.

Mugen87 6 năm trước cách đây
mục cha
commit
d1f751724f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      examples/misc_controls_pointerlock.html

+ 1 - 0
examples/misc_controls_pointerlock.html

@@ -101,6 +101,7 @@
 			function init() {
 
 				camera = new PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 );
+				camera.position.y = 10;
 
 				scene = new Scene();
 				scene.background = new Color( 0xffffff );