This article's documentation is for anything that uses the Source engine. Click here for more information.

$bbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Improve legibility of the first line & remove useless entry in See Also section.)
Line 1: Line 1:
{{lang|$bbox|$title=$bbox}}
{{lang|$bbox|$title=$bbox}}
{{this is a|QC command|name=$hbox}} 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 [[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]].

Revision as of 13:40, 14 July 2024

English (en)Español (es)中文 (zh)Translate (Translate)

$bbox is a QC command available in all Source 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)

See also