# Shape.transformDirection

Transform a world direction to the local shape transform.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Parameters:**

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

**Returns:**

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