This still isn't what I'm asking, let me try again by describing a scenarioPierre wrote:I'm not sure what you want to hear exactly? Since each SAP doesn't contain a lot of objects, adding or removing a shape from them is not very costly. Overlapping shapes are kept in a shared hash-based pair manager with O(1) add/remove/find (and no holesWhat I was getting at is, how do you handle adding/removing/transitioning objects between the independent SAPs efficiently.)
- Pierre

You have a block which is in SAP1 and it moves so that it is now in SAP2 (which is adjacent to SAP1.) How do you handle moving the object from SAP1 to SAP2?
Do you just do an AABB check between the blocks AABB and each SAPs AABB and insert / remove objects from the various SAPs as they enter / leave the region managed by the SAP. Or do you use a more elaborate scheme to determine when an object should be moved from one sap to another.