Example #1
0
 //If a node is leaf, update AABB position, else add child bounds
 public void UpdateAABB()
 {
     if (IsLeaf())
     {
         nodeBounds.UpdateAABB(Meteor.transform);
     }
     else
     {
         nodeBounds = AABB.AddTwoBounds(left.nodeBounds, right.nodeBounds);
     }
 }