It wouldnt be that hard to code either - just calculate a "mass" of every structure then use high school physics to calculate then energy needed to lift it. You could even have the mass value increase by x for every y distance it travels to simulate the effects of gravity and balance of forces! You could also make it so that anything touching the ground will never move at all, allowing you to anchor things to the ground with blocks.
Stolen from /v/:

