I’m trying to create a stone wall, that when shot with heavy rocks, is knocked down. What I’ve got so far is a health system, where each “block” or chunk of wall has a health value. As it gets battered, and the health goes down, it shifts to a more damaged looking chunk, with an animation of rocks falling down, and stone crumbling. When it reaches 0 health, that block of wall collapses entirely.
The primary problem I’m facing is how to handle the structural integrity as a whole, I’m not sure when to let above chunks fall down. When there is only a small hole in the wall, the above layer would not instantly collapse. When a chunk is floating in midair, the surrounding chunks destroyed, it would collapse. I’m not sure what the correct midpoint is, and I’m finding a huge lack of information online about the physics behind stone walls being demolished with flung heavy rocks.
I’m not set in stone (get it?) on my current implementation, and so I ask, how would you make a realistically destructible stone wall?
Anyone have any insights?
– MendenbarrIt sounds like Rigidbodies with the Gravity check on could help quite a bit in this situation. Check out [rigidbodies][1]. [1]: http://docs.unity3d.com/Documentation/Components/class-Rigidbody.html
– jacobschellenbergTrouble is that 2 rigidbodies stacked together are like 2 wooden blocks stacked together, without any force keeping them attached. The wall I'm trying to model consist of blocks stacked together, and sealed together with the glue-like mortar(like traditional stone walls). A sufficient force can crack the mortar, and then the blocks can break apart, but therein lies the problem. If I leave the rigidbodies on default, the entire structure has no bonds, and collapses at the slightest touch.
– Mendenbarr