This article's documentation is for anything that uses the Source engine. Click here for more information.

$hbox

From Valve Developer Community
Revision as of 13:39, 14 July 2024 by Trigger hurt (talk | contribs) (Improve legibility of the first line & remove useless entry in See Also section.)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

$hbox is a QC command available in all Source Source games. It sets the clipping bounding box for the model. This box is used for the culling of models in the game for optimization.

A model will be culled as soon as the clipping bounding box is no longer in view of the camera.

If the coordinates of the this clipping bounding box are all zero, $bbox is used instead.

Syntax

$cbox (min x) (min y) (min z) (max x) (max y) (max z)

See also