PolygonGeometry.ConvexHull
A simple convex hull. The hull is not validated by physics so cannot be used directly for shapes.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<ConvexHull>
public struct PolygonGeometry.ConvexHull : IEquatable<PolygonGeometry.ConvexHull>
Fields
Value | Description |
|---|---|
| vertices | The geometry vertices stored in a PhysicsShape.ShapeArray. |
Properties
Property | Description |
|---|---|
| count | The number of polygon vertices. |
Methods
Method | Description |
|---|---|
| AsReadOnlySpan | Get the convex-hull vertices as a read-only span. |
| AsSpan | Get the convex-hull vertices as a span. |