# Vec3.floor

Floor each component of the vector

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
vec3:floor(  )
```

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

**Parameters:**

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

**Returns:**

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

## Terrain

``` { .lua .api-signature }
vec3:floor(  )
```

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

**Parameters:**

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

**Returns:**

| Type | Description |
| --- | --- |
| [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The floored vector. |
