瀏覽代碼

fix : initial wrong test

Jérôme Bousquié 6 年之前
父節點
當前提交
02d576ce61
共有 1 個文件被更改,包括 3 次插入3 次删除
  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;
         }
 
         /**