How to lock object face a certain distance away from another object face? I tried searching for this on google but I came up empty. I want to know how to lock the object 2 5 inches away from the corner of object 1? I want it to stay 5 inches away even if I re-scale.

How do I lock "cube 2" 5 inches away from the edge of object 1?

Here is an image of what I want to do:



EDIT:
I want to offset "cube 2" 5 inches away from the bottom right vertex of "cube 1" no matter where "cube 1" is?

This is so if I move or scale "cube 1", "cube 2" would still be offset 5 inches from the bottom right vertex of "cube 1".
Set object2 origin point to its right bottom corner and you are free to scale in object mode.

Select object2, go to edit mode, select right bottom vertex, Shift+S > Cursor to selected.
Return to object mode Shift+Ctrl+Alt+C > Origin to 3D cursor.