$cbox: Difference between revisions
Jump to navigation
Jump to search
Confirm:Actual clipping box may often be overridden by game code for entities such as NPCs, as is the case for the GoldSrc equivalent.
SirYodaJedi (talk | contribs) No edit summary |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
If the [[coordinates]] of the clipping bounding box are all zero, <code>[[$bbox]]</code> is used instead. | If the [[coordinates]] of the clipping bounding box are all zero, <code>[[$bbox]]</code> is used instead. | ||
{{confirm|Actual clipping box may often be overridden by game code for entities such as [[NPC]]s, as is the case for the GoldSrc equivalent.}} | |||
==Syntax== | ==Syntax== | ||
Line 17: | Line 18: | ||
[[Category:Modeling]] | [[Category:Modeling]] | ||
[[Category:QC Commands|cbox]] | [[Category:QC Commands|cbox]] | ||
[[Category:Source]] | [[Category:Source]] |
Revision as of 10:37, 25 March 2025
$cbox
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 clipping bounding box are all zero, $bbox
is used instead.

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