sm.debugDraw.addBox

Adds a named box debug draw.

Kind: Function

Environments: Game, Terrain

Game

sm.debugDraw.addBox( name, min, max, position, rotation, color )

Open the full Game reference

Parameters:

Name Type Description
name string The debug transform name.
min Vec3 The box minimum extent.
max Vec3 The box maximum extent.
position Vec3 The box position.
rotation (optional) Quat The box rotation. Defaults to identity.
color (optional) Color The color. Defaults to white.

Terrain

sm.debugDraw.addBox( name, min, max, position, rotation, color )

Open the full Terrain reference

Parameters:

Name Type Description
name string The debug transform name.
min Vec3 The box minimum extent.
max Vec3 The box maximum extent.
position Vec3 The box position.
rotation (optional) Quat The box rotation. Defaults to identity.
color (optional) Color The color. Defaults to white.