debugrenderer.draw_sphere

From Pragma
Jump to: navigation, search

Info

Name: draw_sphere

State:

SHARED

TRANSMITTED

Overloads

CLIENT

 draw_sphere(  origin,  radius,  color,  dur=0,  recursionLevel=1)

CLIENT

 draw_sphere(  origin,  radius,  color,  outlineColor,  dur=0,  recursionLevel=1)

SERVER

 draw_sphere(  origin,  radius,  color,  dur,  recursionLevel=1)

SERVER

 draw_sphere(  origin,  radius,  color,  outlineColor,  dur,  recursionLevel=1)

Description

Draws a sphere in the world. Only use for debugging purposes!
If the duration isn't set to 0, this function will return nil and the sphere will be removed after the duration has passed.
Otherwise the sphere will automatically removed when all references to it are destroyed, or DebugRendererObject:Remove is called.
If this function is run serverside, it will always return nil. (Using a duration of 0 will be pointless in this case.)
The recursion level defines the smoothness of the sphere.

Examples

See Also