How can I make my entire level start falling after a certain amount of time?

I am creating a spacestation themed maze that the player must navigate to the escape. What kind of script will make the entire level start falling down (possibly using a constant force) after a set amount of time?

Thank you!

One common cheat to move the entire level is to move the camera.

Otherwise you have two options

  • Attach a script to every GameObject to cause it to move
  • Make a collection containing every GameObject and iterating over the collection to cause the movement

For the actual movement there are a couple of options

  • RigidBody.AddForce - Used to achieve realistic movements with the physics engine
  • Transform.Translate - Used to achieve movement that ignores physics

You can translate the object’s transform if you know the distance or the duration.
If you want to endlessly make it “fall” with gravity, create a rigidbody (either when you need to, or at the beginning and enable it / enable gravity at the falling time).
The parameter “drag” of the rigidbody indicates the air resistance. By playing with it you may succeed to achieve a constant force, but that seems a lot easier to attach a script that make the level move.