A Sword Can Miss the Body It Seems to Touch: Hitboxes Explained

The sword crosses an enemy's coat, but no damage number appears. A punch seems to stop short, yet the opponent falls. The animation shows one version of contact; the game simulation judges another, using invisible geometry built for speed, clarity, and rules.

Two boxes, two jobs
Developers and players often use hitbox as a general term for collision shapes, but combat discussions usually make a useful distinction. A hitbox is an attacking region: the dangerous area created by a sword swing, projectile, fist, or hazard. A hurtbox is a region that can receive that attack. Damage occurs when the relevant shapes overlap under the game's other rules.
The shapes need not be literal boxes. Engines may use capsules, spheres, rectangles, convex volumes, skeletal regions, or combinations of them. Simple shapes are fast to test and easier to tune than every fold of a detailed character mesh. A humanoid might have capsules around the torso and limbs; a broad slash might use several shapes that activate in sequence.
Animation and collision tell related stories
Visual animation communicates intent. Collision defines the enforceable rule. Ideally they agree closely enough that a player can predict an outcome, but a perfect frame-by-frame outline is not always desirable.
Hair, capes, and loose clothing may sit outside the hurtbox because punishing contact with decorative motion would feel arbitrary. A weapon trail may exaggerate a swing without making its entire glow dangerous. Conversely, an attack hitbox may extend slightly beyond the blade to make a decisive-looking strike connect reliably despite camera angle, animation blending, or small differences in elevation.
Timing matters as much as shape. A sword can pass through a target visually during startup, before its hitbox becomes active, or during recovery, after it switches off. In a fighting game, those startup, active, and recovery frames define risk and opportunity. The picture is continuous; the rule has phases.
Fair does not always mean exact
Collision geometry is often biased toward the experience a game promises. A single-player action game may make the player's attacks slightly generous and enemy attacks slightly conservative. That asymmetry can produce a readable heroic fantasy without announcing itself.
Competitive games usually demand greater consistency because players learn ranges at a fine scale. Designers still simplify, but debug displays, frame data, and repeated matchups expose mismatches quickly. A crouching animation that leaves an old standing hurtbox behind can become a notorious "phantom hit." A move whose dangerous area reaches far beyond its art may be technically consistent yet visually dishonest.
Fairness therefore has at least two parts: the same rule should produce the same result, and the presentation should teach that rule accurately enough to use.
Different genres draw different boundaries
Platformers may use a smaller hurtbox than the character sprite, especially near the feet or corners, so near-misses feel graceful rather than fussy. Bullet-hell games sometimes reduce the vulnerable region to a tiny core while the character art overlaps projectiles harmlessly; many make that core visible during focused movement.
Shooters separate projectile or ray tests from character regions and may assign different damage to head, torso, and limbs. Online play adds disagreement between machines: latency, interpolation, and server authority can make a valid server-side hit look late on one screen.
Action RPGs attach attack volumes to moving weapons and combine them with dodges, invulnerability windows, poise, and blocking angles. A clean overlap may still cause no damage because another system overruled it. Collision is one layer of the verdict, not the whole court.
Designers test the invisible
Development tools can render hitboxes and hurtboxes as bright wireframes over the action. Designers advance animation frame by frame, check when volumes activate, and test unusual poses, slopes, walls, and animation transitions. Automated tests can catch certain regressions, but feel still requires repeated human play.
Tuning often means choosing what to forgive. Should a low swing pass under a jump? Does a large boss need separate vulnerable zones? Can a weapon hit through a wall? Each answer teaches players how literally to trust the image.
The hidden shape becomes learned space
Players rarely see collision geometry, yet they memorize it. They learn the safe distance from a sweep, the narrow center of a character, and the moment a blade becomes live. Good hitboxes let that knowledge match what the animation implies.
When the two disagree, the invisible system suddenly becomes the most visible thing on screen. The sword did not really miss because the pixels failed to touch. It missed because the game's hidden model of the fight said they never did.











