Roof of the builiding (physics)

Hi! I’ve got a question about Unity physics engine. I’m building a builiding from cubes. These cubes have rigidbody with gravity switched on attached to it. Ok, so I’m builiding walls, floor and then it’s time to build roof. Ok, but I’ve got some problems with physics. I see that my roof is falling down. Ok - it’s because I’ve got gravity on. So I switch off the gravity in rigidbody components of these cubes. But now they’re behave very unrealistic when the ball is falling them (for example). They’re flying like the cosmos stones.

Is it possible that I can paste the roof between walls without switching off the gravity?

You have fundamental contradiction here.

You want physics, but you want things in mid air with nothing holding them up.

Physics doesn’t work that way.

HOWEVER there are some things you could try, I would suggest

  1. Turn gravity off to start with.
  2. Attach an OnCollisionEnter script that turns gravity on when an object collides with the block.