Hitbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[ | [[File:Hitbox.jpg|right|250px]] | ||
A '''hitbox''' is an invisible box (or more often a series of boxes) which define the rough shape of a [[model]] for purposes of damage-based collision detection. A typical model within a game is much too high-poly to perform real-time hit calculations on, so hitboxes are used instead. | A '''hitbox''' is an invisible box (or more often a series of boxes) which define the rough shape of a [[model]] for purposes of damage-based collision detection. A typical model within a game is much too high-poly to perform real-time hit calculations on, so hitboxes are used instead. | ||
A hitbox is different from a [[bounding box]] in that it is more complex and closer to the model's visible shape. The bounding box is used for movement-based collision detection, and is usually literally a single box. | A hitbox is different from a [[bounding box]] in that it is more complex and closer to the model's visible shape. The bounding box is used for movement-based collision detection, and is usually literally a single box. | ||
== Console commands == | |||
{{IO|sv_showhitboxes|param=int|Displays the server-side hitboxes of the specified player index, bypassing any <code>net_fakelag</code>. Generates a lot of traffic, so should only be used on local servers. | |||
: This has been removed from Valve's games due to the confusion it causes with regard to [[lag compensation]], but is still in the mod SDK.}} | |||
== See also == | |||
* <code>[[$hbox]]</code> | |||
* [[Lag compensation]] | |||
[[Category:Modeling]] | |||
[[Category:Glossary]] |
Revision as of 05:50, 19 September 2011
A hitbox is an invisible box (or more often a series of boxes) which define the rough shape of a model for purposes of damage-based collision detection. A typical model within a game is much too high-poly to perform real-time hit calculations on, so hitboxes are used instead.
A hitbox is different from a bounding box in that it is more complex and closer to the model's visible shape. The bounding box is used for movement-based collision detection, and is usually literally a single box.
Console commands
- sv_showhitboxes <integer >
- Displays the server-side hitboxes of the specified player index, bypassing any
net_fakelag
. Generates a lot of traffic, so should only be used on local servers. - This has been removed from Valve's games due to the confusion it causes with regard to lag compensation, but is still in the mod SDK.