$bbox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{lang|$bbox|title=<code>$bbox</code> | {{lang|$bbox|$title=$bbox}} | ||
Creates an axis-aligned [[ | '''<code style="color:lightgrey">$bbox</code>''' is the [[:Category:QC_Commands|QC command]]. Creates 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 | 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]]. | ||
This is also called the ''hull''. | This is also called the ''hull''. | ||
Line 9: | Line 9: | ||
==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== |
Revision as of 05:40, 12 September 2021
$bbox
is the QC command. 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 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)