How to demolish Mesh object in runtime by collision.

1.	Create Cube, this will be the cube which will be demolished in runtime, you don't need to prefragment anything, all fragments will be created in runtime. 

2.	Set its name to "Brick", position to [0,5,0], rotation to [30, 0, 50] and scale to [2,1,1]

3.	Remove it's Box Collider because Rigid component will add its own collider.

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

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

6.	Add RayFire Rigid component to Brick.

7.	Set Rigid Initialization to At Start, it means that object will get all necessary components at Start. Default By Method type means that you will need to Initialize it first using button on top of component or public method Initialize().

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

9.	Set Object type to Mesh, it means that you are going to simulate and demolish to pieces meshfilter’s mesh.

10.	Set Demolition type to Runtime. For Mesh objects it means that all slicing operations will be performed in runtime right after collision or when Demolition will be initiated in some other ways.

11.	In Physics properties select demolishable (non metal) material Brick. Keep in mind that all material properties, including demolishable state, can be edited in the RayFire Manager component. Different materials have different density, friction and solidity which affects simulation and demolition.

12.	In Limitations properties set Solidity to 0.1, This is Solidity multiplier which makes object less or more fragile. The less this value, the higher chance that the object will be demolished by collision.

13.	In Mesh Demolition properties set Amount to 10, this is where you can define the approximate amount of fragments you will get after the object will be demolished.

14.	Set Contact Bias to 0.8, this property allows to create more tiny fragments at collision point. With value 0 you will get even fragments distribution.

15.	Start Play Mode. Brick will fall down and will be demolished by collision.

16.	Turn off Play Mode. Now you can try different properties to see how they affect simulation and demolition. 

17.	Set Solidity to 1.0 and start Play mode. This time Brick won’t be demolished. 

18.	Turn off Play Mode and set Bricks position to [0,10,0] and start Play Mode again. Brick was demolished again because this time collision strength was higher.

In other tutorials you will learn how other properties affect objects simulation and demolition and how to demolish objects in other ways.