Box
Sandbox.Game
void Box( Vector3 position, Rotation rotation, Vector3 mins, Vector3 maxs, Color color, float duration = 0, bool depthTest = true, )

Summary

Draw a rotated box in 3D space

Parameters

Vector3 position,

Center position of the box

Rotation rotation,

Rotation of the box

Vector3 mins,

Minimum extents of the box or the position of bottom corner of the box relative to the center

Vector3 maxs,

Maximum extents of the box or the position of top corner of the box relative to the center

Color color,

Box color

float duration = 0,

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

bool depthTest = true,

Should we ignore depth or not