Its been a long time coming but I finally put in breakable walls (and possibly later on, floors) to the game.
I’ve had a tiny bit of experience in the past with a feature like this in my last game Dungeon Nightmares II and the results were satisfactory.
However, for this new game I wanted to get away from the neat brick work that made the walls stand out too easily for the player to find, without the need of using the map to reveal hidden chambers.
I stumbled across something in my search for better fracturing and its called Voronoi generation (http://alexbeutel.com/webgl/voronoi.html).
Since I use Blender, there were also plugins that made use of this algorithm so I decided to venture down this route to find a better smashable walls that also hides it well in the scenery.
The first test is shown above. Whilst this worked ok, I wanted to try and minimise the chunky look at the shards.
I decided to rework the wall and break it down to the size of the bricks rather than punching a hole through it.
This was quickly followed by creating the breakable piece.
Once I was happy with the above, it was time to get it into Unity.
For Unity, each shard needed a rigidbody that is disabled at launch.
Each piece can be poked and prodded in the game and depending on what threshold I choose, the rest of the wall will fall under its own weight.
Here is the final wall in the game.
A slightly longer look of the wall with sound can be seen in the following video clip too.