PhysicsShape.ShapeArray
Fixed vertex shape array.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsShape.ShapeArray
Constructors
Constructor | Description |
|---|---|
| ShapeArray(System.ReadOnlySpan{UnityEngine.Vector2}) | Construct with the specified vertices. |
Properties
Property | Description |
|---|---|
| this[] | Accessor for the shape array. |
| vertex0 | Vertex #0. |
| vertex1 | Vertex #1. |
| vertex2 | Vertex #2. |
| vertex3 | Vertex #3. |
| vertex4 | Vertex #4. |
| vertex5 | Vertex #5. |
| vertex6 | Vertex #6. |
| vertex7 | Vertex #7. |
Methods
Method | Description |
|---|---|
| AsSpan | Get the shape array as a span. |