public void Traverse() { sw.Restart(); broad_list.Clear(); root.SelfCollide(); sw.Stop(); cf.BVHTraverse += sw.ElapsedMilliseconds; }
public void SelfCollide() { if (isLeaf) { return; } child1.SelfCollide(); child2.SelfCollide(); child1.Collide(child2); }