# Quat.inverse

Inverts the quaternion.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
quat:inverse(  )
```

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| [Quat](../Game-Script-Environment/Userdata/Quat.md) | The inverted quaternion. |

## Terrain

``` { .lua .api-signature }
quat:inverse(  )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Userdata/Quat.md#inverse)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `quaternion` | [Quat](../Terrain-Script-Environment/Userdata/Quat.md) | The quaternion. |

**Returns:**

| Type | Description |
| --- | --- |
| [Quat](../Terrain-Script-Environment/Userdata/Quat.md) | The inverted quaternion. |
