PhysicsWorld.DrawResults.CapsuleGeometryElement
A Capsule Geometry Element.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsWorld.DrawResults.CapsuleGeometryElement
Fields
Value | Description |
|---|---|
| color | The color of the capsule element. |
| drawFillOptions | How the geometry element is filled with the color. See PhysicsWorld.DrawFillOptions. |
| elementDepth | The depth of the element. |
| length | The length of the capsule element. |
| radius | The radius of the capsule element. |
| transform | The transform of the capsule element. |
Static Methods
Method | Description |
|---|---|
| Size | The data size of the capsule element. This can be useful in understanding the memory stride in a ComputeBuffer or other structure. |