sm.debugDraw.addArrow
Adds a named arrow debug draw.
Kind: Function
Environments: Game, Terrain
Game
sm.debugDraw.addArrow( name, from, to, color )
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The debug arrow name. |
from |
Vec3 | The from position. |
to (optional) |
Vec3 | The to position. Defaults to the from position plus one along the z axis. (World up vector) |
color (optional) |
Color | The color. Defaults to white. |
Terrain
sm.debugDraw.addArrow( name, from, to, color )
Open the full Terrain reference
Parameters: