Selaa lähdekoodia

dont accumulate tiny translation (#28662)

ycw 1 vuosi sitten
vanhempi
commit
9bc84141dc
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      examples/games_fps.html

+ 5 - 1
examples/games_fps.html

@@ -210,7 +210,11 @@
 
 					}
 
-					playerCollider.translate( result.normal.multiplyScalar( result.depth ) );
+					if ( result.depth >= 1e-10 ) {
+
+						playerCollider.translate( result.normal.multiplyScalar( result.depth ) );
+
+					}
 
 				}