public bool TestOverlap(int proxyIdA, int proxyIdB)
{
// return AABB.testOverlap(proxyA.aabb, proxyB.aabb);
var a = m_tree.GetFatAABB(proxyIdA);
var b = m_tree.GetFatAABB(proxyIdB);
if (b.LowerBound.X - a.UpperBound.X > 0.0f || b.LowerBound.Y - a.UpperBound.Y > 0.0f)
{
return false;
}
if (a.LowerBound.X - b.UpperBound.X > 0.0f || a.LowerBound.Y - b.UpperBound.Y > 0.0f)
{
return false;
}
return true;
}