sm.debugDraw.flashAabb

Flashes an axis-aligned bounding box for a specified duration.

Kind: Function

Environments: Game, Terrain

Game

sm.debugDraw.flashAabb( min, max, color, duration )

Open the full Game reference

Parameters:

Name Type Description
min Vec3 The minimum world extent of the box.
max Vec3 The maximum world extent of the box.
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.flashAabb( min, max, color, duration )

Open the full Terrain reference

Parameters:

Name Type Description
min Vec3 The minimum world extent of the box.
max Vec3 The maximum world extent of the box.
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.