# Harvestable.transformDirection

Transforms a direction in the world into a local direction of the harvestable

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
harvestable:transformDirection( direction )
```

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

**Parameters:**

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

**Returns:**

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