PhysicsDestructor
Provides the ability to destruct (fragment and Slice) geometry.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsDestructor
Static Methods
Method | Description |
|---|---|
| Fragment | Fragment the specified target geometry using the specified fragment points. |
| Slice | Slice the specified target geometry using the specified slice line. |
Structs
Struct | Description |
|---|---|
| PhysicsDestructor.FragmentGeometry | The polygon geometry used when fragmenting. |
| PhysicsDestructor.FragmentResult | The result of a fragment operation. This must be disposed of after use otherwise leaks will occur. See PhysicsDestructor.Fragment and PhysicsDestructor.Fragment. |
| PhysicsDestructor.SliceResult | The result of a slice operation. This must be disposed of after use otherwise leaks will occur. See PhysicsDestructor.Slice. |