What do ‘hitbox’ and ‘hurtbox’ mean

terminology

I've heard of hitboxes, then I heard of hurtboxes. They seem most relevant to fighting games. What do each of them mean and how do they differ?

Best Answer

In most games Hitboxes and Hurtboxes are the same thing. They both refer to the area on the entity in which you (or more specifically, your own hitbox/hurtbox) can come into contact with for selection (talk to, or to interact with), or dealing damage.

As an example, Minecraft hitboxes are indicated by the white wire-frames surrounding the mobs, and items. (The hitbox representation for the player is glitched in this image - caused by the 3rd person camera offset):

enter image description here

Technically, this is the same "area" that can also deal damage to you (when a player punches another player, or swings at them with a weapon), it is based on this same area. an arrow, on the other hand, is dependant on its "state" - if it has been fired from a bow, the "hitbox" of the arrow turns into a "hurtbox" - anything the can receive damage from it will take damage if it hits. Otherwise, if it is not in flight (sitting on the ground, or stuck in a wall to be picked up), it turns back into a "hitbox".

As you can see: interacting/swinging at the pig's head will yield nothing, as it is not within the bounds of the hitbox.

However, in other games, mainly fighting games, like Street Fighter or Tekken, they are different. The hitbox is the area that will hit the opponent (red area), while the hurtbox is the area that you can take damage from an enemy attack during your attack (green box):

enter image description here

In addition to this, there are also some games that can have multiple versions of hitboxes on the same entity. For example, in games like CoD, the head has a different hitbox to the body, and limbs, as hitting an enemy in each specific area would do more or less damage (I.e. a "headshot" would do the most, body less, and the limbs would do the least amount of damage per "hit").