# sm.debugDraw.drawArrowTopDown

Draws an arrow.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.debugDraw.drawArrowTopDown( from, to?, color? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `from` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The starting position of the arrow. |
| `to` *(optional)* | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The ending position of the arrow. Defaults to the starting position plus one unit along the z-axis (world up vector). |
| `color` *(optional)* | [Color](../Game-Script-Environment/Userdata/Color.md) | The color of the arrow. Defaults to white. |

## Terrain

``` { .lua .api-signature }
sm.debugDraw.drawArrowTopDown( from, to?, color? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `from` | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The starting position of the arrow. |
| `to` *(optional)* | [Vec3](../Terrain-Script-Environment/Userdata/Vec3.md) | The ending position of the arrow. Defaults to the starting position plus one unit along the z-axis (world up vector). |
| `color` *(optional)* | [Color](../Terrain-Script-Environment/Userdata/Color.md) | The color of the arrow. Defaults to white. |
