Fake 3D floor with height offset

Hello. So im working on a 2D age of empires like game. I´d like to have multiple units standing at the same x-coordinates look like they´re standing behind of each other by increasing their y- and z- coordinates. I have coded a method to do so by deactivating gravity once a specific y-coordinate is surpassed and activating it otherwise. I´d prefer a rigidbody as a floor to apply friction etc.