# Shape.transformLocalDirection

Transform a local direction to world space.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
shape:transformLocalDirection( vector )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape. |
| `vector` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The local direction. |

**Returns:**

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