فهرست منبع

Init BoundingInfo after resetting.

After resetting BoundingInfo, world matrix should be reapplied
This should solve the problem presented here: http://www.html5gamedevs.com/topic/11598-visibility-problems-loading-groundmesh-on-demand/
Raanan Weber 10 سال پیش
والد
کامیت
a4f1c93160
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      Babylon/Mesh/babylon.geometry.ts

+ 3 - 1
Babylon/Mesh/babylon.geometry.ts

@@ -293,6 +293,8 @@
                     mesh._boundingInfo = new BABYLON.BoundingInfo(extend.minimum, extend.maximum);
 
                     mesh._createGlobalSubMesh();
+                    //bounding info was just created again, world matrix should be applied again.
+                    mesh._updateBoundingInfo();
                 }
             }
 
@@ -686,4 +688,4 @@
             }
         }
     }
-} 
+}