> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/fps-engine-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/fps-engine-documentation/how-to-use/add-breakable-destructible-objects.md).

# Add breakable (Destructible) objects

FPS Engine provides several examples of how to use destructible objects. By attaching Destructible.cs to an object with a collider, you can destroy that object, play an audio clip, and spawn loot inside if desired. One example is using Crate.cs, which not only handles the destruction but also spawns a destroyed version of the object. This approach is recommended.

<figure><img src="/files/pmqNinpePbgDgVQkCnip" alt=""><figcaption></figcaption></figure>

Now, for the destroyed object, you would like to attach an object that has broken pieces in it. See the following image:

<figure><img src="/files/E0ygfclUZJN2c5ppeWVf" alt=""><figcaption></figcaption></figure>

Do not forget to attach a collider ( Simple box collider will work fine ) and a rigidbody for the physics to work properly.

But… How can I destroy my model into different pieces?

This example was made using Blender. Blender offers an add-on called Cell Fracture for this. Of course, you can use any other add-on you like.

To enable Cell Fracture go to Blender´s preferences ( edit/ preferences ), and then click on Add-ons.

<figure><img src="/files/bX4Bh4WaoNJQPeyrCn3l" alt=""><figcaption></figcaption></figure>

Search Cell Fracture and enable it.

<figure><img src="/files/3SLqWgfsb8LRZycuw1gE" alt=""><figcaption></figcaption></figure>

In object mode, select your model and follow the path: Object/QuickEffects/CellFracture. The next window will pop up

<figure><img src="/files/TpWrmBQChuzy0yl7RGlt" alt=""><figcaption></figcaption></figure>

Here, you can customize the fracture as much as you want. Once you are happy, click Ok. Here is the result!

<figure><img src="/files/rzrzjubaEsxmP62qs8RA" alt=""><figcaption></figcaption></figure>
