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 9 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public struct 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. |