Explorar el Código

if oob, set camera rotation to default

Joe hace 3 años
padre
commit
ac50b1d615
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      examples/games_fps.html

+ 1 - 0
examples/games_fps.html

@@ -428,6 +428,7 @@
 					playerCollider.end.set( 0, 1, 0 );
 					playerCollider.radius =  0.35;
 					camera.position.copy( playerCollider.end );
+					camera.rotation.set( 0, 0, 0 );
 				}
 			}