Beispiel #1
0
            public void RetrieveNonAlloc(List <QTCircleCollider> toFill, QTCircleCollider collider)
            {
                Rect bounds = collider.GetGlobalBounds();

                dynamicQT.RetrieveNonAlloc(toFill, bounds);
                staticQT.RetrieveNonAlloc(toFill, bounds);
            }
Beispiel #2
0
            public void Insert(QTCircleCollider collider)
            {
                QuadTree <QTCircleCollider> quadTree = collider.@static ? staticQT : dynamicQT;

                quadTree.Insert(collider, collider.GetGlobalBounds());
            }