PolygonGeometry.ConvexHull
A simple convex hull. The hull is not validated by physics so cannot be used directly for shapes.
阅读时间1 分钟最后更新于 1 个月前
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. |