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.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IDisposable
public readonly struct PhysicsDestructor.FragmentResult : IDisposable
Properties
Property | Description |
|---|---|
| brokenGeometry | The geometry that was fragmented (broken). |
| transform | The transform used when fragmenting. All returned geometry uses this. |
| unbrokenGeometry | The geometry that was not fragmented (unbroken). |
| unbrokenGeometryIslands | The geometry islands indicating how polygons are connected together. Each generated polygon belongs to a unique island defining a set of polygons that are connected together as they share edges. The array returned contains a series of ranges where each range is a unique connected island where the range indicates both the start index and length of the original polygon indices. The number of discovered unique islands is defined by the size of the returned array. |
Methods
Method | Description |
|---|---|
| Dispose | Dispose of the fragment result. |