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

$bbox

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)Español (es)中文 (zh)Translate (Translate)
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)
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.


$bbox是一个QC命令,可在所有的 起源 起源 游戏中使用。 它定义了一个轴对齐边界框(en),被用于检测与世界的碰撞,主要用于移动目的。

当边界框离开玩家视野(en)时,模型将被剔除(隐藏),这是优化游戏的一种手段。过小的边界框可能导致模型在真正离开视野前就消失。

这也被称为外壳(hull)。

$bbox参数行在模型编译(en)时会自动生成,前提是当前不存在已有的定义行。

语法

$bbox (最小X) (最小Y) (最小Z) (最大X) (最大Y) (最大Z)

另见