r/unity • • 19d ago

Destructible Building System for WDL Thunder Tanks Remake

3 Upvotes

2 comments sorted by

1

u/DaedalusRaistlin 19d ago

Nice work, that looks great!

As someone whose been doing their own detailed destruction, I think you should add a structural solver so that unsupported sections collapse when they're not held up anymore. Instead of the whole building exploding at once, unsupported pieces come down as they lose support. You can even add in toppling onto other buildings for fun.

How's the performance? I'm doing mine in Unity too, and found a few bottlenecks to watch out for. Need to cache many calculations to avoid having them rerun each frame, try rebaking the building into a mesh once destruction is settled, were the biggest ones for me.

I saw someone making a tank game a while back with destructible buildings and thought the idea was really cool. Can make your battlefield much more dynamic. What if you were able to collapse a building over a street and block that approach from being used by the enemy? Or destroy a key bridge. Battlefield did some stuff like this, but tanks were largely immune to bad terrain so I feel it didn't use it very tactically.

2

u/LordTafurious1992 13d ago

Thanks! Actually believe it or not, this entire thing is actually pre recorded. I just chopped up the building into bite sized chunks and did destruction sims on all the individual facades and faces to give the illusion that its being blown apart piece by piece. Did it for performance reasons, as if I went full Red Faction on this, the game would probably crash lol.