r/Overwatch • Trick-or-Treat D.Va • Jun 22 '16

Highlight Next-Gen Hitbox

https://gfycat.com/RawSaneDegus
15k Upvotes

2.7k comments sorted by

View all comments

Show parent comment

244

u/Perditius Pharah Jun 22 '16

HURTBOXES. I don't know if that's a real term people use or a typo, but it's a real term I will use now.

207

u/Kajetokun Pixel Bastion Jun 22 '16

Absolutely a real term, often used in the context of fighting games.

Say you're punching me in the face. Your fist has a hitbox. My face has a hurtbox. When the hitbox collides with my hurtbox, it will register the fact your fist connected with my face.

My face's HURTbox is looking for things that cause damage, while your fist's HITbox is looking for things that will accept damage. I'm calling the cops.

61

u/zxDanKwan Jun 22 '16

I enjoy that these are legitimate terms. Threats from programming-savvy gamers sound hilarious.

"Your hurtbox is just LOOKING for a collision!"

18

u/TheRealRazgriz #1 Bastion US PC twitch.tv/therealrazgriz Jun 22 '16

Actually, a programming-savvy gamer would call it a collider, which is what it is. Hurtbox is a laymans term.

3

u/zxDanKwan Jun 22 '16

A game programmer would call it a collider.

As per this thread, we can clearly see that programming-savvy gamers call it hit/hurt-box.

→ More replies (3)

4

u/Themperror Pixel D.Va Jun 22 '16 edited Jun 22 '16
struct Vec3{float x,y,z;};
struct Box{float x,y,z,w,h,l;};

bool PointBoxCollide(Vec3 p, Box b)
{
    if(p.x > b.x && p.x < b.x + b.w && p.y > b.y && p.y < b.y + b.h && p.z > b.z && p.z < b.z + b.l)
    {
            return true;
    }
    return false;
}
→ More replies (5)

3

u/bleachisback Peace be upon you Jun 22 '16

In reality they are both just "hitboxes" - there's nothing technically differentiating one from the other, but people sometimes use the term "hurtbox" when you are talking about several hitboxes at a time and it becomes confusing which one you're talking about.

→ More replies (1)

2

u/AH1N1pl Jun 22 '16

Excellent explanation. True ELI5 material.

2

u/PanZwu Reinhardt Jun 22 '16

back in my days hitboxes were on playermodels and projectiles were... projectiles. you hit the hitbox to cause damage.

→ More replies (4)

309

u/GlowingOrangeOoze it's Jun 22 '16

yeah it's ubiquitous in fighting games.

red = hitbox, green = hurtbox: http://i.imgur.com/lYpfh.jpg

107

u/CynicalEffect Chibi Reinhardt Jun 22 '16

In case the image itself isn't good enough of an explanation, damage is done when red overlaps with green.

Also Sakura cr.hp is godlike.

58

u/greg19735 Trick-or-Trace Jun 22 '16

Are you saying when YOUR red box hits another person's green box?

28

u/Zakaru99 Jun 22 '16

Yes.

2

u/fuzio Trick-or-Treat Symmetra Jun 22 '16

So what if my red box hits someone else's red box?

3

u/Zakaru99 Jun 22 '16

Depends on the game. In a lot of fighting games nothing happens. Sometimes they have a clank where both characters just get knocked out of their animation. Sometimes they have some sort of clash mechanic.

→ More replies (5)
→ More replies (1)
→ More replies (9)
→ More replies (16)

11

u/TheMeatShieId Reaper Jun 22 '16

It's a term used in Street Fighter, so I'm sure it can be applicable to other games.

2

u/[deleted] Jun 22 '16

It's used in mobas, Smash Bros and RoA too.

→ More replies (1)

6

u/Cablead Mei a cute Jun 22 '16

In a fighting game (I only know this from smash) a character's attacks will output hitboxes, while their body has a hurtbox. Damage and knockback occur when a hitbox collides with a hurtbox. Looking at where the hitbox leaves the hurtbox (disjointed hitboxes) can be very important for knowing the distance of an attack that is safe when they are also attacking.

With the arrow, its thin "hurtbox" most likely handles its collision, while the hitbox is disjointed, allowing it to hit around walls because Hanzo is broken.

Here's an example of hitbox and hurtbox visualization. These are Bowser's attacks in Project M, a mod for Super Smash Bros. Brawl that makes it fast and technical like Melee. I play Bowser, so I reference these gifs and tables for info on hitboxes and frame data.

3

u/ShadowWolf202 Torbjörn Jun 22 '16

It is a real term. Hitboxes for attacks, hurtboxes for things that can get hurt.

In other words, Hurtboxes are interacted with by hitboxes.

3

u/[deleted] Jun 22 '16

More a fighting game thing. Attacks have hitboxes, places you can get hit are hurtboxes.

3

u/[deleted] Jun 22 '16

It's real but it's used interchangeably with hitboxes. When referring to the box on projectiles, it is correct to use either hitbox or hurtbox. Hurtboxes generally refer to things that deal with damage while hitbox can refer to any collision detection.

3

u/typhyr Chibi Mei Jun 22 '16

It makes so much more sense than hitboxes when it comes to player models. The models don't hit anything! And it strengthens the damaging-type idea between hitbox and hitscan--hitbox is a box where damage happens with a collision, hitscan is a line with no travel time.

2

u/krokenlochen Chibi Widowmaker Jun 23 '16

The Hurt Box

2

u/ArikadoX Trick-or-Treat Mercy Jun 23 '16

I made a post here about last week, got shut down cuz hurtboxes is an "unnecessary term"

meanwhile its ABSOLUTELY necessary in fighting games, and this game shouldn't be any different in that regard. hurtboxes and hitboxes are quite literally the opposite

→ More replies (1)
→ More replies (7)