Kaynağa Gözat

Examples: Fix floor threshold in `games_fps`. (#33053)

Michael Herzog 17 saat önce
ebeveyn
işleme
e61ab90bd7
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      examples/games_fps.html

+ 3 - 1
examples/games_fps.html

@@ -203,7 +203,9 @@
 
 				if ( result ) {
 
-					playerOnFloor = result.normal.y > 0;
+					// determine if the surface we bumped into is something we can stand on
+
+					playerOnFloor = result.normal.y >= 0.15; // allow slopes up to ~81° but ignore sheer vertical walls
 
 					if ( ! playerOnFloor ) {
 

粤ICP备19079148号