How to demolish Connected Cluster by collision.

Connected cluster consists of multiple objects (Shards) with mesh as children of one root without mesh. Unity will simulate the whole structure as one solid object but it is possible to demolish it and detach it's fragments to Mesh objects and to lesser Connected Clusters.

1.	Create Cube, this will be the cube which will be shattered to multiple fragments. These fragments will be used as Shards for Connected Cluster. 

2.	Set its name to "Pillar", position to [0,10,0], rotation to [0,0,40] and scale to [10,0.5,1]

3.	Create another Cube, this will be a ground cube which will be used for collision.

4.	Set its name to "Ground", position to [0,0,0] and scale to [15,1,10]

5.	Add RayFire Shatter component to Pillar and set Type to Voronoi. In Voronoi properties set Amount to 100.

6.	Click on the Fragment button, a new gameobject “Pillar_root” with fragments as it’s children will be created. Destroy original Pillar because we don’t need it anymore.

7.	Add RayFire Rigid component to Pillar_root.

8.	Set Rigid Initialization to At Start.

9.	Set Simulation type to Dynamic so the object will start to fall down immediately after Initialization.

10.	Set Object type to Connected Cluster.

11.	Set Demolition type to Runtime.

12.	Start Play Mode. 

Pillar will fall down and a group of shards around contact point will be detached and will start to simulate separately. These shards will get new Rigid component applied and will inherit all Rigid properties (except Object type) from their main Connected Cluster. But then you will see that the rest of the Connected Cluster collides with these shards and continue demolishing further detaching more shards and getting smaller.

13.	Turn off Play Mode. In Connected Cluster Limitations properties set Solidity to 0.6 to make it less fragile.

14.	Start Play Mode. This time Connected Cluster was demolished only once at the collision point, but the amount of detached shards is too low, now lets increase their amount.

15.	Turn off Play Mode. In Cluster Demolition properties set Ratio to 60. This property defines radius around collision point in percentage relative to Connected Cluster size. All shards inside this radius will be detached. In our case Cluster size is approximately 10 units, with value 60 it means that all shards in 6 units radius around the collision point will be detached.

16.	Start Play Mode. Now a lot of shards were detached but they all simulate separately which looks not realistic. Some of these shards can be grouped in small Connected Clusters.

17.	Turn off Play Mode. In Cluster Demolition properties set Shard Area value to 20. Default 100 % value means that all shards in collision radius will be detached into separate Mesh objects. Value 20 means that only 20% of sards around the collision point will be detached into separate Mesh objects and the rest of detached shards will be grouped in small Connected Clusters. Amount of such small clusters can be defined by Min and Max Amount properties.