# GetSegmentIndex(PhysicsShape)

> Get the index of the specified Chain Segment PhysicsShape.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public int GetSegmentIndex(PhysicsShape chainSegmentShape)
```

### Parameters

**** (\[PhysicsShape]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsshape)): The chain segment shape to find the index of.

### Returns

| Type                                                       | Description                                                                                                                  |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | 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. |
