GetSegmentIndex(PhysicsShape)
Get the index of the specified Chain Segment PhysicsShape.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public int GetSegmentIndex(PhysicsShape chainSegmentShape)
Parameters
The chain segment shape to find the index of.
Returns
Type | Description |
|---|---|
| int | The index of the chain segment shape in its parent chain. This is a value of zero to the number of chain segment shapes - 1. |