I made every building in my RTS destructible. Driving over the rubble looked so bad that I scrapped

For a long time the buildings in Iron Command were like most RTS buildings: a health bar with a model on top. When the bar hit zero, the building turned into a ruin in one go. I wanted something else – buildings that come apart where you hit them.

Piece by piece

Every building is now made of pieces, each roughly the size of a door. A tank shell tears out a handful of them, a grenade one or two. The hole stays where the shell hit. You can shoot your way into a building from the side you’re standing on.

That raised the first real question: what holds the roof? A roof now needs supports. Take out enough of the walls under it and it comes down – not because a number says so, but because nothing is carrying it any more. Factory chimneys work the same way. Hit the base often enough and the whole thing tips over.

A factory chimney tipping over after tank fire

Hit the base often enough and the chimney goes.

Get out before it falls

Soldiers use buildings as cover. That’s fine until the building starts falling apart around them. So once a building loses a wall that carries weight, every soldier inside leaves it. Whoever is still inside when it collapses doesn’t come out. And the collapsed building blocks its whole footprint for the rest of the match.

A collapsed building in the industrial district

What’s left of a building blocks the way.

The idea I threw out

My first plan was that tanks could drive over the rubble. It sounds great on paper. In the game it looked wrong. Tanks bounced over loose pieces like toys, and the whole thing lost its weight. So I scrapped it. A collapsed building is now an obstacle, and you have to go around it. That turned out to be the better rule anyway: it changes the map, and you have to think about which building you bring down.

The first version took a minute to start

The first version created every piece as its own object in the scene. On the industrial map that came to almost 147,000 objects, and the game needed over a minute to start. Now each building keeps its pieces as data and only turns them into something physical when they actually break off. Start time is back to normal.

Everything else that breaks

Oil tanks catch fire when they’re hit and explode a few seconds later. Containers and rail cars buckle. Parked cars go up in flames. Air strikes hit buildings too, not just units.

A tank shell hits a parked car

Parked cars don’t survive a tank shell either.

Steam page, if you want to follow along: Store.steampowered.com

iron-command.net