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".

• Is this about exact positioning? Do you want to parent cube2 to cube1 and move them around by maintaining the offset? Or simply lock the position of cube2 independently of cube1 (Properties Panel 'N' has locks for the location transformation) – stacker Oct 15 '14 at 5:57
• ya i want to maintain the offset from cube 1 not where it is on the grid – Ismaeel Oct 15 '14 at 16:38

There are always a few things you can do when trying to move things in exact increments. the first is to enable increment snapping, noted by the magnet on the bottom of the 3D view-port.

Another way is to type the distance you want your object to move on your keyboard.

example. G>x>1

This will move your object one unit on the 'X' axis.

if you find you object does not line up with the grid Shift+S>'Selection to Grid' will realign your object to the nearest major intersection on the grid.

Hope this helps,

Vince

• what if i want to offset "cube 2" 5 inches away from the bottom right vertex of "cube 1" no matter where "cube 1" 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" – Ismaeel Oct 16 '14 at 19:43
• Parent cube two to cube one, then do as JuhaW said and change to origin. Either that or re-position the cubes each time you move it. If you want the cubes to move and scale uniformly, select both and press Ctrl+J – Scalia Oct 16 '14 at 20:07

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.

• how do i do that? – Ismaeel Oct 15 '14 at 16:40
• @JuhaW it didnt work :( i want to offset "cube 2" 5 inches away from the bottom right vertex of "cube 1" – Ismaeel Oct 16 '14 at 19:42