Physics-driven building mechanics