Why do my buildings fly?

I put my building down and when I played it it went flying what do I do?

Check to make sure that:

  • A: your building is not a rigid body.
  • B: there is no force being applied to it. and
  • C: that you do not have some form of script that is applying some form of translation to it.

If there is a rigid body attached to it, simply right-click on the component in the inspector> remove component. Or if you want the rigid body on it, make sure that your building isn’t being squished between, or embedded in some geometry (or un-check “use gravity”.

If you have a script applying translation to it, remove it. It is a building, and if you want it to move, it should be only if the player triggered it.

I do agree with DaveA though, more information would be useful.