Destructables! ... Destructibles? ... Things that break!
It's pretty common in ARPG's that some of the environment and loot caches break apart when you damage or hit them! Well, here are some chairs that break.
This was achieved by adding rigidbodies to various collections of Transform children.
I used a bit of randomness in determining how the chairs would break:
- Sometimes all mesh children would receive a rigidbody (every block and pole).
- Sometimes groups of meshes received (i.e. the seat stays in tact).
- Sometimes both! Some groups were maintained, whereas others were broken apart. ( i.e. the seat remains intact but the back breaks apart)
Using the transform hierarchy to group certain mesh gameobjects together was very helpful in achieving the look of random destruction.
I ended up using this effect in a little clicker game I made called Debris. In this game, wood puzzles fall from above, and when they hit the ground, they smash into pieces with the sound of mighty pretzel sticks! Muahahhaa!
https://gneisskitty.itch.io/debris