$bbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Undo revision 146337 by Thelonesoldier (Talk))
(added info)
Line 1: Line 1:
Creates an axis-aligned bounding box used by the AI to detect collisions with the world, mostly for movement purposes.
Creates an axis-aligned bounding box used by the AI to detect collisions with the world, mostly for movement purposes.<br>
It is also used for the culling of models in the game for optimization. A model will be culled as soon as the bounding box is no longer in view of the model<br>
This is also called the ''hull''.


This is also called the ''hull''.
The $bbox lines are automatically generated when compiling a model, as long as there are no lines existing already.<br>


== Syntax ==
== Syntax ==

Revision as of 14:22, 15 November 2019

Creates an axis-aligned bounding box used by the AI to detect collisions with the world, mostly for movement purposes.
It is also used for the culling of models in the game for optimization. A model will be culled as soon as the bounding box is no longer in view of the model
This is also called the hull.

The $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)