- Home /
How to make a realistically destructible stone wall?
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?
It sounds like Rigidbodies with the Gravity check on could help quite a bit in this situation.
Check out rigidbodies.
Trouble 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.
Answer by mvpires · Mar 13, 2014 at 08:03 PM
This might help: http://www.unity3dstudent.com/2011/01/worms-style-power-bar/
In that example the wall is just blocks stacked on top of each other, I'm trying to make something where the blocks are stuck together to form some amount of structural integrity.
Your answer
Follow this Question
Related Questions
2D walls affect my jump height 1 Answer
2D 360 degress platformer example needed 0 Answers
Rigidbody (Player) goes through wall 2 Answers
WheelCollider spontaneous jumping? 0 Answers