sm.debugDraw.drawBoxTopDown
Draws a box.
Kind: Function
Environments: Game, Terrain
Game
sm.debugDraw.drawBoxTopDown( min, max, position, rotation, color, duration )
Parameters:
| Name | Type | Description |
|---|---|---|
min |
Vec3 | The minimum extent of the box. |
max |
Vec3 | The maximum extent of the box. |
position |
Vec3 | The position of the box. |
rotation (optional) |
Quat | The rotation of the box. Defaults to identity. |
color (optional) |
Color | The color of the box. Defaults to white. |
duration (optional) |
number | The duration of the flash animation in seconds. Defaults to 0.5 seconds. |
Terrain
sm.debugDraw.drawBoxTopDown( min, max, position, rotation, color, duration )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
min |
Vec3 | The minimum extent of the box. |
max |
Vec3 | The maximum extent of the box. |
position |
Vec3 | The position of the box. |
rotation (optional) |
Quat | The rotation of the box. Defaults to identity. |
color (optional) |
Color | The color of the box. Defaults to white. |
duration (optional) |
number | The duration of the flash animation in seconds. Defaults to 0.5 seconds. |