sm.debugDraw.flashArrowTopDown

Flashes an arrow for a specified duration.

Kind: Function

Environments: Game, Terrain

Game

sm.debugDraw.flashArrowTopDown( from, to, color, duration )

Open the full Game reference

Parameters:

Name Type Description
from Vec3 The starting position of the arrow.
to (optional) Vec3 The ending position of the arrow. Defaults to the starting position plus one unit along the z-axis (world up vector).
color (optional) Color The color of the arrow. Defaults to white.
duration (optional) number The duration of the flash animation in seconds. Defaults to 0.5 seconds.

Terrain

sm.debugDraw.flashArrowTopDown( from, to, color, duration )

Open the full Terrain reference

Parameters:

Name Type Description
from Vec3 The starting position of the arrow.
to (optional) Vec3 The ending position of the arrow. Defaults to the starting position plus one unit along the z-axis (world up vector).
color (optional) Color The color of the arrow. Defaults to white.
duration (optional) number The duration of the flash animation in seconds. Defaults to 0.5 seconds.