# Shape.getPipeOffsets

Returns a table offsets for the pipe connections of the shape. Can specify direction using sm.pipeGraph.direction.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:getPipeOffsets( direction? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Shape.md#getpipeoffsets)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape. |
| `direction` *(optional)* | integer | The direction to fetch in. Defaults to [sm.pipeGraph.direction.any](../Game-Script-Environment/Static-Functions/sm.pipeGraph.md#direction) (Optional) |

**Returns:**

| Type | Description |
| --- | --- |
| table | table of local offset positions. \{[Vec3](../Game-Script-Environment/Userdata/Vec3.md), ..\} |
