Procházet zdrojové kódy

fix : initial wrong test

Jérôme Bousquié před 6 roky
rodič
revize
02d576ce61
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/Culling/babylon.boundingSphere.ts

+ 3 - 3
src/Culling/babylon.boundingSphere.ts

@@ -124,11 +124,11 @@ module BABYLON {
         public isCenterInFrustum(frustumPlanes: Array<DeepImmutable<Plane>>): boolean {
             let center = this.centerWorld;
             for (let i = 0; i < 6; i++) {
-                if (frustumPlanes[i].dotCoordinate(center) >= 0) {
-                    return true;
+                if (frustumPlanes[i].dotCoordinate(center) < 0) {
+                    return false;
                 }
             }
-            return false;
+            return true;
         }
 
         /**