这篇条目有关 Source引擎。如需详情,点击这里。

$cbox

From Valve Developer Community
< Zh
Revision as of 19:11, 18 April 2025 by MoRanYue (talk | contribs)
Jump to navigation Jump to search
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

Info content.png
This page is being translated.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
English (en)中文 (zh)Translate (Translate)

$cbox是一个QC 命令(en),可在所有的 起源 起源 游戏中使用。 It sets the clipping bounding box(en) for the model(en). 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(en) of the clipping bounding box are all zero, $bbox(en) is used instead.

证实:Actual clipping box may often be overridden by game code for entities such as NPC(en)s, as is the case for the GoldSrc equivalent.

Syntax

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

See also