Garry's Mod Wiki

debugoverlay.SweptBox

  debugoverlay.SweptBox( Vector vStart, Vector vEnd, Vector vMins, Vector vMaxs, Angle ang, number lifetime = 1, table color = Color( 255, 255, 255 ) )

Description

Displays "swept" box, two boxes connected with lines by their vertices.

This function will silently fail if the developer ConVar is set to 0. It is not networked to clients, except for the listen server host.

Arguments

1 Vector vStart
The start position of the box.
2 Vector vEnd
The end position of the box.
3 Vector vMins
The "minimum" edge of the box.
4 Vector vMaxs
The "maximum" edge of the box.
5 Angle ang
6 number lifetime = 1
Number of seconds to appear
7 table color = Color( 255, 255, 255 )
The color of the box. Uses the Color