Hitbox: Difference between revisions

7 bytes removed ,  12 July 2018
Invisible objects can have hitboxes
(→‎Types: Migrate information from 'hurtbox' article)
(Invisible objects can have hitboxes)
Line 1: Line 1:
{{stub}}
{{stub}}


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 an [[object]]. They are used for collision detection.
==Hurtboxes==
==Hurtboxes==
'''Hurtboxes''' are a specific type of hitbox that hurt Mario when he touches them. Many different enemies in the game have hurtboxes.
'''Hurtboxes''' are a specific type of hitbox that hurt Mario when he touches them. Many different enemies in the game have hurtboxes.