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

$cbox

From Valve Developer Community
< Zh
Jump to navigation Jump to search
Info content.png
This page is Machine translated
It is not recommended to use machine translation without any corrections.
If the article is not corrected in the long term, it will be removed.
Also, please make sure the article complies with the alternate languages guide.(en)
English (en)中文 (zh)Translate (Translate)

$cbox是一个QC 命令,可在所有的 起源 起源 游戏中使用。 该命令用于设置模型的剪裁包围盒(en)。该包围盒用于游戏中对模型进行视锥剔除以优化性能。

当剪裁包围盒不在摄像机视域范围内时,模型将被立即剔除。

若剪裁包围盒的坐标(en)值均为零,则会自动使用$bbox(en)代替。

证实:实际剪裁盒常会被游戏代码覆盖(例如NPC(en)等实体),此行为与GoldSrc引擎的处理方式一致。

语法

$cbox (最小x) (最小y) (最小z) (最大x) (最大y) (最大z)

另见