Browse Source

Examples: Clean up. (#23133)

linbingquan 3 years ago
parent
commit
d3f7dfab7a
1 changed files with 7 additions and 3 deletions
  1. 7 3
      examples/games_fps.html

+ 7 - 3
examples/games_fps.html

@@ -422,14 +422,18 @@
 
 			} );
 
-			function teleportPlayerIfOob(){
-				if (camera.position.y <= -25){
+			function teleportPlayerIfOob() {
+
+				if ( camera.position.y <= - 25 ) {
+
 					playerCollider.start.set( 0, 0.35, 0 );
 					playerCollider.end.set( 0, 1, 0 );
-					playerCollider.radius =  0.35;
+					playerCollider.radius = 0.35;
 					camera.position.copy( playerCollider.end );
 					camera.rotation.set( 0, 0, 0 );
+
 				}
+
 			}