# Harvestable.setRotation

Set the quaternion rotation of a harvestable. Can only be used on kinematic harvestables.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
harvestable:setRotation( rotation )
```

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

**Parameters:**

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