How can i "connect" a object to another by resizing it?

What i mean is like, lets say
i have object 1 at X: -40
and i have object 2 at X:90

how can i make object 2 be resized in order to be “connected” to object 1
Example:


Thanks!

Just set object 2’s position to the middle of the two, and its size as the distance of them.

1 Like