public void RetrieveNonAlloc(List <QTCircleCollider> toFill, QTCircleCollider collider) { Rect bounds = collider.GetGlobalBounds(); dynamicQT.RetrieveNonAlloc(toFill, bounds); staticQT.RetrieveNonAlloc(toFill, bounds); }
public void Insert(QTCircleCollider collider) { QuadTree <QTCircleCollider> quadTree = collider.@static ? staticQT : dynamicQT; quadTree.Insert(collider, collider.GetGlobalBounds()); }