$bbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(reworded page)
mNo edit summary
Line 1: Line 1:
Creates an axis-aligned bounding box used by the AI to detect collisions with the world, mostly for movement purposes.<br>
{{lang|$bbox|title=<code>$bbox</code>}}
Models will be cullled (hidden) when the BBox 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.<br>
Creates an axis-aligned [[Bounding_box|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 BBox 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]].
 
This is also called the ''hull''.
This is also called the ''hull''.


$bbox lines are automatically generated when compiling a model, as long as there are no lines existing already.<br>
<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)


[[Category:QC Commands|bbox]]__NOTOC__
[[Category:Modeling]]
[[Category:QC Commands]]
[[Category:Glossary]]__NOTOC__

Revision as of 21:51, 28 May 2021

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

Creates 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 BBox 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)