I want to keep the distance between the floor and the object.

Now, when you touch the button, you create an object and stack it up like a tower.
To create a function that allows objects to fall in the air and maintain a constant distance between them,

Please give me a hint of what function to use.