Handle handle = (Handle) proxy;
updateHandle(handle.uniqueId, aabbMin, aabbMax, dispatcher);
}
public boolean testAabbOverlap(BroadphaseProxy proxy0, BroadphaseProxy proxy1) {
Handle pHandleA = (Handle)proxy0;
Handle pHandleB = (Handle)proxy1;
// optimization 1: check the array index (memory address), instead of the m_pos
for (int axis = 0; axis < 3; axis++) {
if (pHandleA.getMaxEdges(axis) < pHandleB.getMinEdges(axis) ||
pHandleB.getMaxEdges(axis) < pHandleA.getMinEdges(axis)) {
return false;
}
}
return true;
}