Explorar o código

Exampels: Fix initial height of camera in pointerlock example.

Mugen87 %!s(int64=6) %!d(string=hai) anos
pai
achega
d1f751724f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 );