Hitbox
From Wikipedia, the free encyclopedia
For other uses, see Hitbox (web analytics).
A hitbox is an invisible shape commonly used in video games for real-time collision detection. It is a rectangle (in 2D games) or cuboid (in 3D) that is attached to and follows a point on a visible object. It is common for animated objects to have a set of hitboxes attached to one moving part each to ensure accuracy during motion.[1]
Hitboxes are used to detect "one-way" collisions such as bullet impacts. They are unsuitable for the detection of collisions with feedback (e.g. bumping into a wall) due the difficulty experienced by both humans and AI in managing a hitbox's ever-changing locations; these sorts of collisions are typically handled with much simpler axis-aligned bounding boxes instead.
References
- ↑ "Hitbox". Valve Developer Community. Valve Corporation. Retrieved 18 September 2011.
Template:Merica Template:Walker
This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.