> For the complete documentation index, see [llms.txt](https://docs.otherside.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherside.xyz/platform-documentation/creation/unreal-development/features-and-tutorials/chaos-destruction-experimental.md).

# Chaos Destruction - Experimental

Unreal [Engine's Chaos Destruction system](https://dev.epicgames.com/documentation/en-us/unreal-engine/chaos-destruction-in-unreal-engine) supports physically simulated destruction via Geometry Collections, and includes built-in replication support. However, this replication is not compatible with Morpheus out of the box. This has been extended for Morpheus to support Chaos destruction replication, ensuring that destructible objects break consistently across all connected clients.

**Note:** This feature is experimental. Because Unreal's Chaos Destruction system is computationally expensive and carries a performance cost. Profile carefully when using large or complex Geometry Collections in networked contexts.

### Setup

To enable networked destruction on a Geometry Collection, the following must be configured:

#### 1. Enable the M2Extras\_Chaos Plugin

1. Go to **Edit > Plugins** in the Unreal Editor.
2. Search for **M2Extras\_Chaos** and enable it.
3. Restart the editor when prompted.

or

1. Add `M2Extras_Chaos` as an enabled plugin in your `.uproject`.

#### 2. Enable Replication

In the Geometry Collection asset or actor:

1. Select the **Geometry Collection** in the editor.
2. Open the **Network** tab in the Details panel.
3. Set **Enable Replication** to `true`.

<figure><img src="https://970394512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft3SBfOIsRz4GCNFFpae7%2Fuploads%2FZ1TNksWC1QAtP3PowToj%2Fimage.png?alt=media&amp;token=60185f42-20fe-4d60-871e-30f1d481f854" alt=""><figcaption></figcaption></figure>

This allows the Geometry Collection to be replicated in Unreal's replication system, which Morpheus hooks into.

#### 3. Disable "Abandon After Level"

Still in the **Network** tab:

1. Set **Enable Abandon After Level** to `false`.

<figure><img src="https://970394512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft3SBfOIsRz4GCNFFpae7%2Fuploads%2FvFw2KrBr9B1ZcCc6SpmX%2Fimage.png?alt=media&amp;token=28386d76-cc3a-4130-94f0-9904a343b2e3" alt=""><figcaption></figcaption></figure>

This ensures the server continues to replicate all levels of destruction rather than stopping replication past a certain break depth. Leaving this enabled will cause clients to miss deeper breaks and fall out of sync.

#### 4. Continue According to Unreal's Documentation

<https://dev.epicgames.com/documentation/en-us/unreal-engine/destruction-quick-start#2-creatingthegeometrycollection>

### Applying damage

Damage can be applied to a Geometry Collection in two ways.

#### Physics Collision

When a physics object (such as a vehicle) collides with a Geometry Collection, strain is applied automatically. No additional setup is required.

#### Manual Strain via Blueprint (e.g. Projectiles)

For cases where you need to trigger destruction manually - such as spawning a Master Field on bullet impact - use the **Server Apply Strain to GC** function on the `BPM_Destruction_Singleton`.

**Steps:**

1. **Get a reference to the singleton** by calling **Get Actor of Class** and selecting `BPM_Destruction_Singleton` as the class.
2. **Perform a Line Trace by Channel** to detect the hit.
3. **Break the Hit Result** to extract the required values.
4. **Call Server Apply Strain to GC** on the singleton with the following parameters:

| Parameter           | Source                                  |
| ------------------- | --------------------------------------- |
| Geometry Collection | The GC actor you want to damage         |
| Location            | Hit Location from the broken Hit Result |
| Item Index          | Item from the broken Hit Result         |

This will spawn a Master Field at the hit location, applying strain to the Geometry Collection at that point and triggering destruction if the strain exceeds the piece's threshold.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.otherside.xyz/platform-documentation/creation/unreal-development/features-and-tutorials/chaos-destruction-experimental.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
