public void Clear() { QuadTreePool.PoolQuadTree(_childA); QuadTreePool.PoolQuadTree(_childB); QuadTreePool.PoolQuadTree(_childC); QuadTreePool.PoolQuadTree(_childD); _childA = null; _childB = null; _childC = null; _childD = null; _bodies.Clear(); }
public void Clear() { QuadTreePool.PoolQuadTree(this.childA); QuadTreePool.PoolQuadTree(this.childB); QuadTreePool.PoolQuadTree(this.childC); QuadTreePool.PoolQuadTree(this.childD); this.childA = null; this.childB = null; this.childC = null; this.childD = null; this.bodies.Clear(); }