sm.debugDraw.addSphere
Adds a named sphere debug draw.
Kind: Function
Environments: Game, Terrain
Game
sm.debugDraw.addSphere( name, center, radius, color )
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | The debug sphere name. |
center |
Vec3 | The sphere center. |
radius (optional) |
number | The sphere radius. Defaults to 0.125. |
color (optional) |
Color | The color. Defaults to white. |
Terrain
sm.debugDraw.addSphere( name, center, radius, color )
Open the full Terrain reference
Parameters: