# Shape.getZAxis

Returns the local z-axis vector of a shape.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The shape's z-axis. |
