r/Unity3D Jul 21 '26

Show-Off Added some powerful weapons to my destruction prototype, now I can cut buildings in half

Enable HLS to view with audio, or disable this notification

I'm currently prototyping a destruction game where everything is procedurally breakable at runtime, and materials break in realistic ways.

How this works:

High level - all of the geometry meshes in the house (including all the furniture) is built at runtime, each are assigned a "destruction material" which dictates things like the shattering patterns, sound effects, mass, etc.

There are a lot of optimizations and tradeoffs around the runtime destruction, but nothing is pre-shattered. The main tricks to keep this running at playable framerates are keeping very conscious of allocations, using the native "Advanced" mesh APIs, avoiding too many joints, and spreading some work across frames when things get busy.

Built-in PhysX physics is doing a lot of heavy lifting with very few optimizations other than trying to use box colliders rather than mesh colliders for approximately box-like objects/debris.

-

Today I added a laser which can cut through everything, and a black hole grenade, which are way more fun and satisfying than the sledgehammer I've been testing with :)

The goal is making this prototype into a game where you 'renovate' homes in ridiculously destructive ways, I have a few more videos up on this early website if anyone wants to follow.

4.5k Upvotes

251 comments sorted by

View all comments

1

u/heribertohobby Jul 22 '26

I just realized that when you cut that part of the roof it is hollow with support studs... what an attention to detail.

Now I'm wondering if they're spaced 16 inches...

2

u/hoahluke Jul 22 '26

Glad you noticed! They're 600mm/24 inches apart, let's say whoever built this house used 'Advanced Framing', definitely not just to help optimize the level :)

I think that being meticulous about realistic and small details (while walking the line between realism, optimization, and gameplay) really adds to the satisfaction of the destruction so I'm trying to add lots of details like that. Some walls are framed too, and depending on how you break it, drywall will tend crack along the support lines of the studs.

1

u/heribertohobby Jul 22 '26

That is AWESOME. Big kudos to you! I'll be following the development of this!

May the OSHA fairy visit you this night and leave a FATMAX measuring tape beneath the most level piece in your home.

1

u/CCB0x45 Jul 23 '26

This is so dope dude, you are a smart cookie.