sm.debugDraw.flashRectTopDown
Flashes a rectangle for a specified duration.
Kind: Function
Environments: Game, Terrain
Game
sm.debugDraw.flashRectTopDown( min, max, color, duration )
Parameters:
| Name | Type | Description |
|---|---|---|
min |
Vec3 | The minimum extent of the rectangle. |
max |
Vec3 | The maximum extent of the rectangle. |
color (optional) |
Color | The color of the rectangle. Defaults to white. |
duration (optional) |
number | The duration of the flash animation in seconds. Defaults to 0.5 seconds. |
Terrain
sm.debugDraw.flashRectTopDown( min, max, color, duration )
Open the full Terrain reference
Parameters: