What Is a Hitbox?
A hitbox is an invisible area used by the game to detect whether two objects interact with each other. Even though players see a detailed character model, the game usually checks collisions using simple shapes like rectangles or capsules.
This makes the game run faster and reduces complex calculations.
Why Hitboxes Are Important
Hitboxes determine whether an action succeeds or fails. For example:
- When a sword hits an enemy
- When a bullet touches a target
- When a character touches a platform
Types of Hitboxes
- Offensive hitbox (used for attacks)
- Defensive hitbox (the area that receives damage)
- Interaction hitbox (used for triggers or items)
Example Situations
- A player attacks an enemy with a sword
- A character lands on a platform
- A projectile hits a target
Visual Example

Poor hitbox design can make a game feel unfair or inaccurate, while well-designed hitboxes create satisfying gameplay.
More information:
Collision Detection