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 object to have a set of hitboxes attached to one moving part each to ensure accuracy during motion.
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 hitboxes' ever-changing locations; these sorts of collisions are typically handled with much simpler axis-aligned bounding boxes instead.
|This video game software-related article is a stub. You can help Wikipedia by expanding it.|