# PhysicsDestructor

> Provides the ability to destruct (fragment and Slice) geometry.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<PhysicsDestructor>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct PhysicsDestructor : IEquatable<PhysicsDestructor>
```

## Static Methods

| Method                                                                                      | Description                                                                 |
| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [Fragment](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/fragment.md) | Fragment the specified target geometry using the specified fragment points. |
| [Slice](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/slice.md)       | Slice the specified target geometry using the specified slice line.         |

## Structs

| Struct                                                                                                                        | Description                                                                                                                                                                                                                                                                                                                             |
| ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsDestructor.FragmentGeometry](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/fragmentgeometry.md) | The polygon geometry used when fragmenting.                                                                                                                                                                                                                                                                                             |
| [PhysicsDestructor.FragmentResult](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/fragmentresult.md)     | The result of a fragment operation. This must be disposed of after use otherwise leaks will occur. See [PhysicsDestructor.Fragment](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/fragment.md) and [PhysicsDestructor.Fragment](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/fragment.md). |
| [PhysicsDestructor.SliceResult](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/sliceresult.md)           | The result of a slice operation. This must be disposed of after use otherwise leaks will occur. See [PhysicsDestructor.Slice](/engine/6000.7/script-reference/unity/u2d/physics/physicsdestructor/slice.md).                                                                                                                            |
