A vs B CompareGame Dev
Hitbox vs Hurtbox
Understand the roles of attacking Hitboxes and vulnerable Hurtboxes in action and fighting game collision detection.
Visual & Interactive Comparison
A
Hitbox
An invisible geometric volume attached to attacks or objects used by the game engine to detect hits and collisions
B
Hurtbox
An invisible vulnerable volume attached to a character or object that registers damage when overlapped by an opponent's hitbox
Hitbox (Attack) vs Hurtbox (Vulnerable)
ATTACKHitbox
Volume that deals damage
- Active WindowActive frames of an attack only
- Attached ToSword arcs, fists, projectiles, AoE
- Design BiasSlightly generous for player attacks
VULNERABLEHurtbox
Volume that receives damage
- Active WindowAlways active (off during i-frames)
- Attached ToCharacter torso, head, destructibles
- Design BiasSlightly smaller than player sprite
Key Differences
| Aspect | AHitbox | BHurtbox |
|---|---|---|
| Primary Role | Offensive volume that deals damage or hitstun | Vulnerable volume that receives incoming hits |
| Active Window | Enabled only during Active attack frames | Always active except during invincibility frames |
| Design Tuning | Often slightly generous to make attacks feel responsive | Often slightly smaller than visuals for fair dodges |
| Debug Convention | Typically drawn in Red | Typically drawn in Blue or Green |