# sm.debugDraw.addAabb

Adds a named aabb debug draw.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.debugDraw.addAabb( name, min, max, color? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.debugDraw.md#addaabb)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `name` | string | The debug transform name. |
| `min` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The box minimum extent. |
| `max` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The box maximum extent. |
| `color` *(optional)* | [Color](../Game-Script-Environment/Userdata/Color.md) | The color. Defaults to white. |

## Terrain

``` { .lua .api-signature }
sm.debugDraw.addAabb( name, min, max, color? )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.debugDraw.md#addaabb)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `name` | string | The debug transform name. |
| `min` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The box minimum extent. |
| `max` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The box maximum extent. |
| `color` *(optional)* | [Color](../Terrain-Script-Environment/Userdata/Color.md) | The color. Defaults to white. |
