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

Zh/$bbox: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(Created page with "{{subst:#if: Translation of '$bbox' to '中文' via Template:LanguageBar buttons * * * * * * * * * * * * * * * * * * * * * * * * * * * *...")
 
No edit summary
Line 1: Line 1:
{{subst:#if:|||{{LAuto/t}}
{{wip}}{{translating}}
 
--- DON'T JUST BLINDLY DELETE THIS PART. DO REPLACE THE LINKS AND CATEGORIES. THE PICTURE SHOWS HOW TO USE IT ! ---
 
SEARCH FOR:
\[\[(?!#|File(?:[ _]talk)?:|Image(?:[ _]talk)?:|Media:|Template(?:[ _]talk)?:|MediaWiki(?:[ _]talk)?:|Talk:|Category[ _]talk:|Project[ _]talk:|Valve[ _]Developer[ _]Community[ _]talk:|Help[ _]talk:|User(?:[ _]talk)?:|c:|commons:|Dictionary:|Google:|GoogleGroups:|IMDB:|M:|Meta:|Metawikipedia:|MW:|SdkBug:|SourceForge:|Steampowered:|W:|Wiki:|WikiBooks:|Wikipedia:|Wikiquote:|Wiktionary:|WP:)(:?(?:Category|Category|Help|Project|Valve[ _]Developer[ _]Community|Special|)(?:[^\|\]]+))(\|?.*?)\]\]
 
REPLACE WITH:
{{subst:LAuto|$1$2}}
 
}}{{wip}}{{translating}}
{{lang|$bbox|$title=$bbox}}
{{lang|$bbox|$title=$bbox}}
{{tabsBar|main=gs|base=$bbox}}
{{tabsBar|main=gs|base=$bbox}}
{{this is a|QC command|name=$bbox}} It defines an axis-aligned [[bounding box]] used by the [[:Category:AI|AI]] to detect collisions with the world, mostly for movement purposes.
{{this is a|QC command|name=$bbox}} It defines an axis-aligned {{L|bounding box}} used by the {{LCategory|AI}} to detect collisions with the world, mostly for movement purposes.


Models will be culled (hidden) when the bounding box is no longer in the players field of view, as a means to optimize the game. Too small bounding boxes can cause a model to disappear before it really left the [[Field_of_View|FOV]].
Models will be culled (hidden) when the bounding box is no longer in the players field of view, as a means to optimize the game. Too small bounding boxes can cause a model to disappear before it really left the {{L|Field_of_View|FOV}}.


This is also called the ''hull''.
This is also called the ''hull''.


<code>$bbox</code> lines are automatically generated when [[Compiling_a_model|compiling a model]], as long as there are no lines existing already.
<code>$bbox</code> lines are automatically generated when {{L|Compiling_a_model|compiling a model}}, as long as there are no lines existing already.


==Syntax==
==Syntax==
Line 24: Line 14:


==See also==
==See also==
* [[$cbox]]
* {{L|$cbox}}
* [[$hbox]]
* {{L|$hbox}}
* [[$hboxset]]
* {{L|$hboxset}}


[[Category:Modeling]]
{{ACategory|Modeling}}
[[Category:QC Commands|bbox]]
{{ACategory|QC Commands|bbox}}
[[Category:Source]]__NOTOC__
{{ACategory|Source}}__NOTOC__

Revision as of 19:14, 18 April 2025

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)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),可在所有的 起源 起源 游戏中使用。 It defines an axis-aligned bounding box(en) used by the Category:AI(en) to detect collisions with the world, mostly for movement purposes.

Models will be culled (hidden) when the bounding box is no longer in the players field of view, as a means to optimize the game. Too small bounding boxes can cause a model to disappear before it really left the FOV(en).

This is also called the hull.

$bbox lines are automatically generated when compiling a model(en), as long as there are no lines existing already.

Syntax

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

See also