$cbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Sets the collision box for the model. What these coordinates are relative/aligned to is currently not known?
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 ==
== Syntax ==


$cbox <[[float]]|minx> <[[float]]|miny> <[[float]]|minz> <[[float]]|maxx> <[[float]]|maxy> <[[float]]|maxz>
$cbox (min x) (min y) (min z) (max x) (max y) (max z)


[[Category:QC Commands|cbox]]__NOTOC__
[[Category:QC Commands|cbox]]__NOTOC__

Revision as of 03:52, 6 September 2020

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)