# Shape.getClosestBlockLocalPosition

Transform a world position to the closest block's local position in a shape.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:getClosestBlockLocalPosition( position )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The block shape. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The world position. |

**Returns:**

| Type | Description |
| --- | --- |
| [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The closest position. |
