Hitbox: Difference between revisions

714 bytes added ,  12 July 2018
→‎Types: Migrate information from 'hurtbox' article
(Much more info)
(→‎Types: Migrate information from 'hurtbox' article)
Line 2: Line 2:


A '''hitbox''' is an invisible shape commonly used in video games for real-time collision detection. It is often a rectangle or circle (in 2D games) or cuboid, cylinder, or sphere (in 3D) that is attached to and follows a point on a visible [[object]]. They are used for collision detection.
A '''hitbox''' is an invisible shape commonly used in video games for real-time collision detection. It is often a rectangle or circle (in 2D games) or cuboid, cylinder, or sphere (in 3D) that is attached to and follows a point on a visible [[object]]. They are used for collision detection.
==Types==
==Hurtboxes==
===Collision hitboxes===
'''Hurtboxes''' are a specific type of hitbox that hurt Mario when he touches them. Many different enemies in the game have hurtboxes.
===List===
* [[Goomba|Goombas]]
* [[Explosion|Explosions]] ([[Bob-omb|Bob-ombs]] and possibly other objects spawn these (please add information on which these are))
* [[Bowser]]
* [[Bubble Bomb|Bubble Bombs]]
* [[Fire]]
* [[Clam|Clams]]
* [[Treasure of the Ocean Cave|Chests]]
* And many more.
Lava is a floor with a special property, not a hurtbox.
===Uses===
Because hurtboxes provide an easy way to damage Mario, they create an easy way to utilize [[Pause Buffered Hitstun]]. The hurtbox of fire also gives a small vertical boost, which is useful in the [[A Button Challenge]].
==Collision hitboxes==
Many hitboxes push Mario away, such as those of Bob-ombs and [[Chuckya|Chuckyas]]. These are necessary for [[Quick Release]] and are also the basis for the [[Bloated Bob-omb]] and [[Handsfree Teleported Bob-omb]] glitches, which work because the Bob-omb's size is large enough that its hitbox pushes Mario back, but it moves with him because he's holding it.
Many hitboxes push Mario away, such as those of Bob-ombs and [[Chuckya|Chuckyas]]. These are necessary for [[Quick Release]] and are also the basis for the [[Bloated Bob-omb]] and [[Handsfree Teleported Bob-omb]] glitches, which work because the Bob-omb's size is large enough that its hitbox pushes Mario back, but it moves with him because he's holding it.
===Clone hitboxes===
==Clone hitboxes==
Cloned objects that Mario can pick up normally act normal when set down, and have normal hitboxes. However, clones of objects never meant to be held have odd hitboxes. The majority of them can be interacted with only once by Mario, if at all. Platforms are intangible, and most enemies can injure Mario once and then become intangible. Coins can only be collected once, but don't disappear.
Cloned objects that Mario can pick up normally act normal when set down, and have normal hitboxes. However, clones of objects never meant to be held have odd hitboxes. The majority of them can be interacted with only once by Mario, if at all. Platforms are intangible, and most enemies can injure Mario once and then become intangible. Coins can only be collected once, but don't disappear.
====Overshadowing====
===Overshadowing===
Clone hitboxes overshadow the hitboxes of other clones of the same type. For example, Mario can release a [[fire]] clone and will immediately get burned by it. Then, he can stand in its (now dormant) hitbox to release another without getting burned. This serves many purposes in the [[A Button Challenge]], including [[Bowser in the Sky]] and [[Tick Tock Clock]].
Clone hitboxes overshadow the hitboxes of other clones of the same type. For example, Mario can release a [[fire]] clone and will immediately get burned by it. Then, he can stand in its (now dormant) hitbox to release another without getting burned. This serves many purposes in the [[A Button Challenge]], including [[Bowser in the Sky]] and [[Tick Tock Clock]].