sm.debugDraw.flashBoxTopDown

Flashes a box for a specified duration.

Kind: Function

Environments: Game, Terrain

Game

sm.debugDraw.flashBoxTopDown( min, max, position, rotation, color, duration )

Open the full Game 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.

Terrain

sm.debugDraw.flashBoxTopDown( 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.