asset.party
key api Reference event History person Log In
home
Api Reference
Sandbox
Internal
Globals
DebugOverlay
Box(BBox,Color,float)
classDebugOverlay
Constructorsnote_add DebugOverlay()
Methodscode Axis( position, rotation, length, duration, depthTest ) code Box( mins, maxs ) code Box( mins, maxs, color, duration, depthTest ) code Box( position, mins, maxs, color, duration, depthTest ) code Box( position, rotation, mins, maxs, color, duration, depthTest ) code Box( ent, color, duration ) code Box( body, color, duration ) code Box( bounds, color, duration ) code Circle( position, rotation, radius, color, duration, depthTest ) code Line( start, end, color, duration, depthTest ) code Line( start, end, duration, depthTest ) code ScreenText( text, position, line, color, duration ) code ScreenText( text, position, duration ) code ScreenText( text, line, duration ) code Skeleton( ent, color, duration, depthTest ) code Sphere( position, radius, color, duration, depthTest ) code Sphere( sphere, color, duration ) code Text( text, pos, offset, color, duration, maxDistance ) code Text( text, pos, color, duration, maxDistance ) code Text( text, pos, duration, maxDistance ) code Texture( texture, position, duration ) code Texture( texture, rect, duration ) code Texture( texture, rect, color, topLeftUV, bottomRightUV, duration ) code TraceResult( tr, duration )
Box
Sandbox.Game
void Box( BBox bounds, Color color, float duration = 0, )

Summary

Visualize given AABB.

Parameters

BBox bounds,

AABB to visualize.

Color color,

Box color.

float duration = 0,

How long to keep the box visible for. A duration of 0 is 1 frame

s&box stuff Blog Forum Discord Twitter
dev resources Wiki Bug Report Feature Request