How to explode prefragmented structure and keep its bottom intact.

1.	Create Cube, this will be a ground cube which will be used for collisions.

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

3.	Create another Cube, set its name to "Wall", position to [0,4,0] and scale to [3,7,0.5]

4.	Add RayFire Shatter component to "Wall", set Amount to 100 and click on Fragment button.

5.	Destroy "Wall" object, we do not need it anymore.

6.	Add Rigid component to "Wall_root" object, set Initialization to At Start, Object Type to Mesh Root and Simulation Type to Kinematik.

7.	Create empty game object, set its name to "Bomb" and position to [0,1,4]

8.	Add RayFire Bomb component to "Bomb" and set its Range to 10 so it will cover the whole Wall.

9.	Under Activate group of properties enable Kinematic property.

10.	Start Play Mode. 

11.	Select Bomb and click on Explode button, the same can be done via code using public method Explode()

Wall will be exploded, but in some cases you may need to keep some group of fragments intact. To do so, you need to use RayFire Unyielding component.

12.	Turn Off Play Mode. 

13.	Add RayFire Unyielding component to "Wall_root", set its Size to [3,1,1]
and Center to [0,-3,0] so it will overlap the bottom fragments with its gizmo.

14.	Start Play Mode. 

15.	Select Bomb and click on Explode button.

This time, you can see that the group of fragments overlapped by Unyielding component were not affected by the explosion. In the same way you can use RigidRoot component instead of Rigid with Mesh Root object type.

16.	Turn Off Play Mode. 

In some cases you may use Connected Cluster object type instead of Mesh Root, in this case setup should be a bit more complicated to achieve the same result.

17.	Select "Wall_root" object and in Rigid component change Object Type to Connected Cluster and Demolition Type to Runtime.

18.	Start Play Mode. 

19.	Select Bomb and click on Explode button.

As you can see Connected Cluster was affected by the Bomb as one solid object. To explode only fragments outside Unyielding gizmo you need to enable Damage feature. Using Damage you can demolish Connected Cluster to fragments and then explode them instantly.

20.	Select "Wall_root" object and in Rigid component open Damage properties and turn On Enable property. Set max Damage value to 10. 

You can explode objects several times applying a different amount of damage every time, total amount of applied damage you can see in Current Damage value field. Object will be demolished when it will reach Max Damage value.

21.	Select Bomb and enable Apply property under Damage properties, set Value to 100 so first explosion will be enough to demolish Connected Cluster.

22.	Start Play Mode. 

23.	Select Bomb and click on Explode button.

Upper fragments were exploded, but bottom fragments overlapped by Unyielding gizmo also were exploded as one Connected Cluster. This happened because our bomb activates Wall before explode it and Connected Cluster inherit its simulation type. This time we do not need to activate anything like with Mesh Root setup, instead we need to demolish Connected Cluster by Damage using Bomb.

24.	Turn Off Play Mode. 

25.	Select Bomb and disable Kinematic checkbox under Activate properties.

26.	Start Play Mode. 

27.	Select Bomb and click on Explode button.

This time, explosion looks the same as with MeshRoot setup.