Multiple Collisions on Grid

HI everyone!

So I’m looking to snap a rectangular object onto a grid of squares, which are generated at runtime. The rectangle object should overlap two grid objects at most. I’m currently picking up the rectangle objects with physics handles and I’d like the rectangles to snap onto the grid (the midpoint between two grid spaces to be exact) when I drop the object.
Am I required to also create midpoint nodes between each grid block or is there some other, simpler way I can go about this?

One of the major problems I’ve run into is that no matter what I do when casting to the overlapping gridblock, I can never limit those actions to a maximum of two.

Any help with this is much appreciated!