$cbox: Difference between revisions
Jump to navigation
Jump to search
m (Fixed name of page in QC category. Action performed by bot) |
Trigger hurt (talk | contribs) m (Improve legibility of the first line & remove useless entry in See Also section.) |
||
Line 1: | Line 1: | ||
{{lang|$cbox|title= | {{lang|$cbox|title=$cbox}} | ||
{{this is a|QC command|name=$hbox}} It sets the clipping [[Bounding_box|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. | A model will be culled as soon as the clipping bounding box is no longer in view of the camera. | ||
Line 10: | Line 10: | ||
==See also== | ==See also== | ||
* [[$bbox]] | * [[$bbox]] | ||
* [[$hbox]] | * [[$hbox]] |
Revision as of 13:39, 14 July 2024
$hbox
is a QC command available in all 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)