All your Win are Belong to Us

I have a physics game coming along well, but I have a problem. The game should only finish the level IF: All of Block A is on top of Block B, Block A's linear velocity is 0, and if Block A is touching Block B. For the latter two conditions, I have no problem doing, but for the first one, I do not know the math to enable the game to tell whether or not the entire Block A is on top of Block B. [I have two Game-level attributes, Block-A X and Block-A Y that constrain themselves to Block A's X and Y positions.] What is the math needed?
Comments