sm.debugDraw.flashSphere

Flashes a sphere for a specified duration.

Kind: Function

Environments: Game, Terrain

Game

sm.debugDraw.flashSphere( center, radius, color, duration )

Open the full Game reference

Parameters:

Name Type Description
center Vec3 The center position of the sphere.
radius (optional) number The radius of the sphere. Defaults to 0.125.
color (optional) Color The color of the sphere. Defaults to white.
duration (optional) number The duration of the flash animation in seconds. Defaults to 0.5 seconds.

Terrain

sm.debugDraw.flashSphere( center, radius, color, duration )

Open the full Terrain reference

Parameters:

Name Type Description
center Vec3 The center position of the sphere.
radius (optional) number The radius of the sphere. Defaults to 0.125.
color (optional) Color The color of the sphere. Defaults to white.
duration (optional) number The duration of the flash animation in seconds. Defaults to 0.5 seconds.