$bbox: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) No edit summary |
(Removing deprecated Category) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{ | {{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. | ||
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 [[Field_of_View|FOV]]. | ||
Line 9: | Line 9: | ||
<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 [[Compiling_a_model|compiling a model]], as long as there are no lines existing already. | ||
==Syntax== | == Syntax == | ||
$bbox (min x) (min y) (min z) (max x) (max y) (max z) | $bbox (min x) (min y) (min z) (max x) (max y) (max z) | ||
==See also== | == See also == | ||
* [[$cbox]] | * [[$cbox]] | ||
* [[$hbox]] | * [[$hbox]] | ||
Line 18: | Line 18: | ||
[[Category:Modeling]] | [[Category:Modeling]] | ||
[[Category:Source]]__NOTOC__ | [[Category:Source]]__NOTOC__ |
Latest revision as of 21:08, 16 July 2025
$bbox
is a QC command available in all Source games. It defines an axis-aligned bounding box used by the 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 FOV.
This is also called the hull.
$bbox
lines are automatically generated when compiling a model, as long as there are no lines existing already.
Syntax
$bbox (min x) (min y) (min z) (max x) (max y) (max z)