Esempio n. 1
0
 private void AddToChildIntersectingShapes(CollisionShape shape)
 {
     if (shape == containedShape)
     {
         return;
     }
     for (int i = 0; i < childCount; i++)
     {
         SphereTreeNode child = children[i];
         if (child != null && child.SphereOverlap(shape))
         {
             child.AddIntersectingShape(shape);
             child.AddToChildIntersectingShapes(shape);
         }
     }
 }