Smashpedia
No edit summary
Tags: Visual edit apiedit
 
(21 intermediate revisions by 21 users not shown)
Line 1: Line 1:
[[Image:Mewtwouair.gif|thumb|200px|right|Example of Red, Orange, and Yellow Collision Bubbles]]
+
[[Image:Mewtwouair.gif|thumb|200px|Example of Red, Orange, and Yellow Collision Bubbles, as demonstrated with [[Mewtwo (SSBM)|Mewtwo's]] [[Up Air Attack]].]]
  +
A '''hitbox''' or '''collision bubble''' (sometimes '''hitbubble''') is the main structure for how attacks are executed in most fighting games. Attacks have one or more hitboxes associated with them, and when these hitboxes overlap with a target's damageable area (sometimes called their '''hurtbox''' or '''hurtbubbles'''), the attack is considered a hit. Hitboxes are invisible and usually, though not always, have the same shape as the attack's animation.
A '''hitbox''' is the area of an attack that is able to damage your opponent. This area is invisible and is not always part of what is used to attack. The developers use the term '''collision bubbles''' to describe hitboxes as well as the area of an object or character that the hitbox interacts with. Collision bubbles can only be viewed in [[Debug Mode]]. The status of each kind of collision bubble is represented by its color:
 
   
  +
==Overview==
*Yellow represents a damagable area- The bodies of the characters and destructible stage areas.
 
  +
The two most common forms of hitbox shapes in video games are [[wikipedia:cuboid|cuboids]] and spheres. Neither is obviously better than the other - cuboids can more easily form long or thin attacks or targets, while spheres are easier to calculate collision detection for. ''[[Super Smash Bros.]]'' uses cuboids whereas ''[[Melee]]'', ''[[Brawl]]'', and ''[[Super Smash Bros. for Nintendo 3DS/Wii U|3DS/Wii U]]'' use spheres and sphere-like structures known as capsules (cylinders with spheres on the ends).
*Orange represents a damagable hitbox- These can be found on projectiles with a lifespan that can be reduced by receiving attacks ([[Ness]]' PK Fire, [[Link]] or [[Young Link]]'s bombs and arrows, [[Sheik]]'s needles). Unknown if it's actually a seperate hitbox type or simply a yellow and red hitbox of exactly the same size in the same place.
 
*Red represents a damaging hitbox- These can be found on most non-[[grab]] attacks.
 
*Purple represents a grab hitbox- These can be found on grabs as well as [[Ganondorf]]'s [[Dark Dive]], [[Captain Falcon]]'s [[Falcon Dive]], [[Kirby]]'s [[Swallow]], [[Yoshi]]'s [[Egg Lay]], and [[Bowser]]'s [[Koopa Klaw]]. All these attacks share the characteristic of being able to penetrate the enemy's shield.
 
*Blue represents [[invincibility frames|invincibility]]: an area of a character that is immune to attacks. This usually occurs as part of a dodge. Characters that attack something with blue collision bubbles will not suffer [[hitlag]] - essentially, blue collision bubbles do not exist for collision detection. (For example, when the blocks in [[Mushroom: Kingdom]] are broken, they turn from yellow to blue.)
 
*Green represents a temporarily non-damagable area- for instance, a character who has been off of the spawn platform for no more than two seconds, or for 8 [[frame]]s at the start of a throw. Characters that attack something with green collision bubbles will suffer hitlag.
 
*Blue-green represents an area attached to a character that can interact with hitboxes in a specific way. It applies to shields (including [[Link]] and [[Young Link]]'s hand shields), [[counter]]s ([[Marth]] and [[Roy]]), reflectors, and absorbers ([[Ness]] and [[Mr. Game & Watch]]'s [[down B]]).
 
   
  +
In ''Super Smash Bros.'', hacks can enable hitbox visibility (with a few limitations), such as in [[Media:SSB Hurtboxes.png|this image]]. In ''Melee'', hitboxes can be seen by setting '''DBLEVEL''' to '''DEVELOP''' in the [[debug menu]]. There is no easy way to display hitboxes in-game in ''Brawl'' or ''3DS/Wii U'', though a common technique is to use hacks to place [[Super Scope]] shot visuals where the hitboxes are (which is significantly more involved a process and generally fails for any projectile or item).
== Disjointed Hitbox ==
 
   
  +
Should multiple hitboxes of a single move connect with the opponent, only one of them will count. The order of precedence is known as the "hitbox stack" - hitboxes higher in the stack will override ones lower should they both hit at the same time. Mechanically, this is denoted by giving each hitbox an ID number, and lower numbers indicate higher precedence (higher stack position). For example, Marth's down air attack in ''Melee'' features its tipper hitbox on top of the stack, so hitting with both a tipper and non-tipper hitbox will result in the tipper counting (even if the majority of the opponent was hit by the other hitboxes). By contrast, the move in ''Brawl'' has the tipper on the bottom, so the tipper can only hit if none of the other hitboxes do. As a result, even through the sizes and positions of the hitboxes did not change much between games, the tipper is simple to hit with in ''Melee'' while being difficult in ''Brawl''.
'''Disjointed hitbox''' describes an attacking red collision bubble that is not attached to the vulnerable yellow bubble. These are generally found on weapons, like swords or hammers. A disjointed hitbox, if attacked, cannot hurt the character. For example, If [[Marth]] attacks [[Ness]]'s [[PK Fire]] with his [[forward smash]], [[Marth]] will not be affected. However, if [[Mario]] punches the [[PK Fire]], he will sustain damage.
 
   
  +
{{anchor|Disjointed hitboxes}}
== Trapbox ==
 
  +
Hitboxes that are separated from a character's hurtboxes are often called '''disjointed''', which is usually an advantage, as they can connect from a farther distance, while keeping the attacker safer from retaliation and reducing the likelihood of trading blows. Examples of disjointed hitboxes include most weapon-based attacks, as well as the [[up tilt]]s of {{SSB|Kirby}} (in ''Super Smash Bros.'') and {{SSBB|Snake}}.
   
  +
An interesting property of hitboxes in the Smash Bros. series is that under most conditions, they occupy not only the space where they currently are, but also the space where they were one [[frame]] ago as well as all the space in between (in a straight line, regardless of what the animation might look like during intervening subframes). This characteristic is likely to prevent situations where a fast projectile may end up passing through a character in less than a frame without hitting them. On the other hand, hurtboxes do not stretch over "interframe space" in this way, so a fast-moving object (such as Fox during his [[Fox Illusion|Illusion]]) may be able to move through a slow or stationary hitbox without being damaged. In addition, certain hitboxes in ''Brawl'' use the stretch effect to create a very long hitbox, for example in [[Zero Laser]] and [[Aura Storm]], instead of stretching over interframe space. It is unclear how the hitbox-stretching mechanism operates in ''Brawl'' when time is slowed via [[training mode]] or other effects, as ''Brawl'' renders subframes, whereas ''Melee'' and ''Super Smash Bros.'' simply reduce the overall framerate.
The hitbox left on the ground during [[Ness]]' [[Yoyo Glitch]]. As with all hitboxes, trapboxes are invisible. It is called a trapbox because this hitbox is not attached at all to any kind of attack but instead just sits on the ground or, in some cases, floats in the air.
 
   
  +
[[Image:3D Hitboxes in Melee.png|thumb|250px|right|While the regular camera suggests Mario should have been hit already, a side view shows otherwise.]]
[[Category:Terms]]
 
  +
It is a common misconception that, like some other fighting games, hitboxes and hurtboxes only operate in two dimensions. In actuality, they interact in all three dimensions equally, and there are many situations where certain animations can bring some of a character's hurtboxes outside the line of fire for many attacks (such as the end of {{SSBB|King Dedede}}'s [[sidestep]]).
  +
{{clear}}
  +
==Hitbox types==
  +
{|class="wikitable" align="center"
  +
!Hitbox Type!![[Debug Mode]] Colour!!Explanation
  +
|-
  +
|Offensive||style="background:rgba(255,0,0,0.5)"|Red||The standard type of attacking hitbox. In ''Brawl'' and ''3DS/Wii U'', there are various types of offensive hitboxes, some of which have unique abilities (like the ability to ignore [[shield]]s).
  +
|-
  +
|Damageable||style="background:rgba(255,255,0,0.5)"|Yellow||The standard type of damageable area, also known as hurtboxes. Characters have a variety of these attached to their bodies, while damageable stage areas (such as the wedge of ice on the [[Summit]]) use them as well.
  +
|-
  +
|Invincible||style="background:rgba(0,255,0,0.5)"|Green||Invincible targets can be hit by attacks but will not flinch or take any damage or knockback. For example, this occurs for characters that have just stepped off a [[revival platform]], or who have used a [[Starman (item)|Star]].
  +
|-
  +
|Intangible||style="background:rgba(0,0,255,0.5)"|Blue||Intangible targets cannot be hit by attacks. This occurs during [[dodge]]s and [[roll]]s. Various characters have attacks which provide parts of their body with intangibility, such as Mario's head during his [[up smash]].
  +
|-
  +
|Reflective||style="background:rgba(0,255,127,0.5)"|Aqua||Defensive hitboxes that [[reflect]] attacks.
  +
|-
  +
|Shield||style="background:rgba(0,255,255,0.5)"|Cyan||Defensive hitboxes that [[shield]] attacks.
  +
|-
  +
|Absorbing||style="background:rgba(0,127,255,0.5)"|Cyan-blue||Defensive hitboxes that [[absorb]] attacks.
  +
|-
  +
|Grab||style="background:rgba(255,0,255,0.5)"|Magenta||[[Grab]] hitboxes will ignore any special or defensive hitboxes.
  +
|-
  +
|Inert||style="background:rgba(191,191,191,0.5)"|Grey||Inert hitboxes are used for collision detection when a regular hitbox is unsuitable (such as the dash of [[Raptor Boost]] and [[Gerudo Dragon]]).
  +
|}
  +
  +
==Hitbox properties==
  +
{|class="wikitable"
  +
|-
  +
!Property!!Introduced in!!Description
  +
|-
  +
|Damage||''Super Smash Bros.''||The base damage dealt by the hitbox. Always an integer, but once modified by things like [[stale-move negation]], rarely ends up as one.
  +
|-
  +
|Angle||''Super Smash Bros.''||The direction the target is sent flying. Usually a number from 0 to 360, with numbers such as 361 or 365 indicating the [[Sakurai angle]] or [[autolink angle]]. Can also be negative numbers such as -90.
  +
|-
  +
|Base knockback||''Super Smash Bros.''||The minimum [[knockback]] this hitbox can apply, regardless of target's weight and damage (but dependent on [[type effectiveness]] and [[damage ratio]]).
  +
|-
  +
|Knockback growth||''Super Smash Bros.''||Modifies how much knockback rises as the target's damage increases, with the default being 100. For example a value of 110 means that knockback will increase at a 1.1x rate compared to other hitboxes that deal the same damage.
  +
|-
  +
|Fixed knockback value||''Super Smash Bros.''||If set, causes the hitbox to deal the same knockback regardless of the target's damage.
  +
|-
  +
|Effect||''Super Smash Bros.''||Determines what happens when the hitbox connects: [[normal|nothing]], [[slash]]ing, [[flame|burning]], [[electric|electrocution]], etc.
  +
|-
  +
|Groundness/Airness||''Super Smash Bros.''||Determines whether a hitbox can strike grounded opponents, aerial opponents, or both.
  +
|-
  +
|[[Shield damage]]||''Super Smash Bros.''||Modifies how much damage the hitbox does to [[shield]]s.
  +
|-
  +
|Clang||''Super Smash Bros.''||Determines whether a hitbox can cancel out other hitboxes through [[priority]] rules.
  +
|-
  +
|Sound effect||''Super Smash Bros.''||On impact, each hitbox produces a sound effect with a given type (punch, kick, slash, shock, burn, etc.) and severity (small, medium, large; in Brawl huge is introduced for certain types).
  +
|-
  +
|Reflectiveness||''Super Smash Bros.''||Determines whether the hitbox can be [[reflect]]ed.
  +
|-
  +
|Absorptiveness||''Super Smash Bros.''||Determines whether the hitbox can be [[absorb]]ed.
  +
|-
  +
|Blockability||''Super Smash Bros. Melee''||Determines whether the hitbox can be shielded.
  +
|-
  +
|Rebound||''Super Smash Bros. Melee''||Determines whether a move is interrupted when it clangs with another move.
  +
|-
  +
|Type||''Super Smash Bros. Brawl''||Determines what kind of [[sticker]]s can power up the attack: [[arm]], [[leg]], [[body]], [[weapon]], etc.
  +
|-
  +
|SDI Multiplier||''Super Smash Bros. Brawl''||Modifies how much [[smash directional influence]] can be applied when struck by this hitbox.
  +
|-
  +
|Freeze frames multiplier||''Super Smash Bros. Brawl''||Changes how many [[freeze frames]] are applied on impact.
  +
|-
  +
|Trip chance||''Brawl''||Gives the hitbox an extra chance of [[trip]]ping opponents.
  +
|-
  +
|Directness||''Super Smash Bros. Brawl''||Determines whether the hitbox is [[Specials: Indirect]].
  +
|-
  +
|Angle Flipper||''Super Smash Bros. Brawl''||Sets whether a hitbox is allowed to hit targets the opposite direction if the target is behind the attacker, among other things.
  +
|}
  +
 
==Trapbox==
  +
[[Image:Melee Yo-yo glitch Usefulness.gif|thumb|A hitbox stretching across interframe space.]]
  +
In ''Melee'', a '''trapbox''' is the hitbox left on the ground during [[Ness]]' [[yo-yo glitch]]. It is called a trapbox because this hitbox is not attached at all to any kind of attack but instead just sits wherever it was when the glitch occured. Using a new attack will overwrite the hitbox with the new attack's properties and relocate it to the new attack, which due to the interframe stretching effect will cause it to hit everything between it and Ness.
  +
  +
==Trivia==
  +
*In ''Super Smash Bros.'', grabs are normal hitboxes with no apparent mechanism for distinction from attacks. In ''Melee'', grab hitboxes and inert hitboxes are 0%-damage hitboxes with "grab" or "inert" for an effect. Both grabs and inert hitboxes are separate objects in ''Brawl'' and ''3DS/Wii U'', though in rare cases a 0%-damage hitbox is used as an inert one.
  +
*The single largest hitbox in ''Melee'' can be found when [[Raikou]] is released from a [[Poké Ball]].
 
[[Category:Game Physics]]

Latest revision as of 13:10, 1 April 2017

Mewtwouair

Example of Red, Orange, and Yellow Collision Bubbles, as demonstrated with Mewtwo's Up Air Attack.

A hitbox or collision bubble (sometimes hitbubble) is the main structure for how attacks are executed in most fighting games. Attacks have one or more hitboxes associated with them, and when these hitboxes overlap with a target's damageable area (sometimes called their hurtbox or hurtbubbles), the attack is considered a hit. Hitboxes are invisible and usually, though not always, have the same shape as the attack's animation.

Overview

The two most common forms of hitbox shapes in video games are cuboids and spheres. Neither is obviously better than the other - cuboids can more easily form long or thin attacks or targets, while spheres are easier to calculate collision detection for. Super Smash Bros. uses cuboids whereas Melee, Brawl, and 3DS/Wii U use spheres and sphere-like structures known as capsules (cylinders with spheres on the ends).

In Super Smash Bros., hacks can enable hitbox visibility (with a few limitations), such as in this image. In Melee, hitboxes can be seen by setting DBLEVEL to DEVELOP in the debug menu. There is no easy way to display hitboxes in-game in Brawl or 3DS/Wii U, though a common technique is to use hacks to place Super Scope shot visuals where the hitboxes are (which is significantly more involved a process and generally fails for any projectile or item).

Should multiple hitboxes of a single move connect with the opponent, only one of them will count. The order of precedence is known as the "hitbox stack" - hitboxes higher in the stack will override ones lower should they both hit at the same time. Mechanically, this is denoted by giving each hitbox an ID number, and lower numbers indicate higher precedence (higher stack position). For example, Marth's down air attack in Melee features its tipper hitbox on top of the stack, so hitting with both a tipper and non-tipper hitbox will result in the tipper counting (even if the majority of the opponent was hit by the other hitboxes). By contrast, the move in Brawl has the tipper on the bottom, so the tipper can only hit if none of the other hitboxes do. As a result, even through the sizes and positions of the hitboxes did not change much between games, the tipper is simple to hit with in Melee while being difficult in Brawl.

Hitboxes that are separated from a character's hurtboxes are often called disjointed, which is usually an advantage, as they can connect from a farther distance, while keeping the attacker safer from retaliation and reducing the likelihood of trading blows. Examples of disjointed hitboxes include most weapon-based attacks, as well as the up tilts of Kirby (in Super Smash Bros.) and Snake.

An interesting property of hitboxes in the Smash Bros. series is that under most conditions, they occupy not only the space where they currently are, but also the space where they were one frame ago as well as all the space in between (in a straight line, regardless of what the animation might look like during intervening subframes). This characteristic is likely to prevent situations where a fast projectile may end up passing through a character in less than a frame without hitting them. On the other hand, hurtboxes do not stretch over "interframe space" in this way, so a fast-moving object (such as Fox during his Illusion) may be able to move through a slow or stationary hitbox without being damaged. In addition, certain hitboxes in Brawl use the stretch effect to create a very long hitbox, for example in Zero Laser and Aura Storm, instead of stretching over interframe space. It is unclear how the hitbox-stretching mechanism operates in Brawl when time is slowed via training mode or other effects, as Brawl renders subframes, whereas Melee and Super Smash Bros. simply reduce the overall framerate.

3D Hitboxes in Melee

While the regular camera suggests Mario should have been hit already, a side view shows otherwise.

It is a common misconception that, like some other fighting games, hitboxes and hurtboxes only operate in two dimensions. In actuality, they interact in all three dimensions equally, and there are many situations where certain animations can bring some of a character's hurtboxes outside the line of fire for many attacks (such as the end of King Dedede's sidestep).

Hitbox types

Hitbox Type Debug Mode Colour Explanation
Offensive Red The standard type of attacking hitbox. In Brawl and 3DS/Wii U, there are various types of offensive hitboxes, some of which have unique abilities (like the ability to ignore shields).
Damageable Yellow The standard type of damageable area, also known as hurtboxes. Characters have a variety of these attached to their bodies, while damageable stage areas (such as the wedge of ice on the Summit) use them as well.
Invincible Green Invincible targets can be hit by attacks but will not flinch or take any damage or knockback. For example, this occurs for characters that have just stepped off a revival platform, or who have used a Star.
Intangible Blue Intangible targets cannot be hit by attacks. This occurs during dodges and rolls. Various characters have attacks which provide parts of their body with intangibility, such as Mario's head during his up smash.
Reflective Aqua Defensive hitboxes that reflect attacks.
Shield Cyan Defensive hitboxes that shield attacks.
Absorbing Cyan-blue Defensive hitboxes that absorb attacks.
Grab Magenta Grab hitboxes will ignore any special or defensive hitboxes.
Inert Grey Inert hitboxes are used for collision detection when a regular hitbox is unsuitable (such as the dash of Raptor Boost and Gerudo Dragon).

Hitbox properties

Property Introduced in Description
Damage Super Smash Bros. The base damage dealt by the hitbox. Always an integer, but once modified by things like stale-move negation, rarely ends up as one.
Angle Super Smash Bros. The direction the target is sent flying. Usually a number from 0 to 360, with numbers such as 361 or 365 indicating the Sakurai angle or autolink angle. Can also be negative numbers such as -90.
Base knockback Super Smash Bros. The minimum knockback this hitbox can apply, regardless of target's weight and damage (but dependent on type effectiveness and damage ratio).
Knockback growth Super Smash Bros. Modifies how much knockback rises as the target's damage increases, with the default being 100. For example a value of 110 means that knockback will increase at a 1.1x rate compared to other hitboxes that deal the same damage.
Fixed knockback value Super Smash Bros. If set, causes the hitbox to deal the same knockback regardless of the target's damage.
Effect Super Smash Bros. Determines what happens when the hitbox connects: nothing, slashing, burning, electrocution, etc.
Groundness/Airness Super Smash Bros. Determines whether a hitbox can strike grounded opponents, aerial opponents, or both.
Shield damage Super Smash Bros. Modifies how much damage the hitbox does to shields.
Clang Super Smash Bros. Determines whether a hitbox can cancel out other hitboxes through priority rules.
Sound effect Super Smash Bros. On impact, each hitbox produces a sound effect with a given type (punch, kick, slash, shock, burn, etc.) and severity (small, medium, large; in Brawl huge is introduced for certain types).
Reflectiveness Super Smash Bros. Determines whether the hitbox can be reflected.
Absorptiveness Super Smash Bros. Determines whether the hitbox can be absorbed.
Blockability Super Smash Bros. Melee Determines whether the hitbox can be shielded.
Rebound Super Smash Bros. Melee Determines whether a move is interrupted when it clangs with another move.
Type Super Smash Bros. Brawl Determines what kind of stickers can power up the attack: arm, leg, body, weapon, etc.
SDI Multiplier Super Smash Bros. Brawl Modifies how much smash directional influence can be applied when struck by this hitbox.
Freeze frames multiplier Super Smash Bros. Brawl Changes how many freeze frames are applied on impact.
Trip chance Brawl Gives the hitbox an extra chance of tripping opponents.
Directness Super Smash Bros. Brawl Determines whether the hitbox is Specials: Indirect.
Angle Flipper Super Smash Bros. Brawl Sets whether a hitbox is allowed to hit targets the opposite direction if the target is behind the attacker, among other things.

Trapbox

Melee Yo-yo glitch Usefulness

A hitbox stretching across interframe space.

In Melee, a trapbox is the hitbox left on the ground during Ness' yo-yo glitch. It is called a trapbox because this hitbox is not attached at all to any kind of attack but instead just sits wherever it was when the glitch occured. Using a new attack will overwrite the hitbox with the new attack's properties and relocate it to the new attack, which due to the interframe stretching effect will cause it to hit everything between it and Ness.

Trivia

  • In Super Smash Bros., grabs are normal hitboxes with no apparent mechanism for distinction from attacks. In Melee, grab hitboxes and inert hitboxes are 0%-damage hitboxes with "grab" or "inert" for an effect. Both grabs and inert hitboxes are separate objects in Brawl and 3DS/Wii U, though in rare cases a 0%-damage hitbox is used as an inert one.
  • The single largest hitbox in Melee can be found when Raikou is released from a Poké Ball.