User:Manta/Hitdetection

From Dustloop Wiki
< User:Manta
Revision as of 08:34, 15 August 2022 by Manta (talk | contribs)

Other Checks

Hitboxes are not the whole story. Many moves, particularly throws (but not exclusively), also layer in up to three further checks:

State Check

Moves can be designed to hit opponents or not based on whether they're standing, crouching, airborne, downed, in hitstun etc... These tend to be found on moves that are unblockable in some way to allow the opponent to defend against them. Most common by far is that grounded throw moves cannot hit someone airborne (or even while starting to jump) and likewise airthrows can only hit players in the air:

<some examples of hitboxes matching but the move failing>

Range check

You will have noticed that opponents have a minimum distance they can stand from each other, and that trying to move closer just pushes the other player back instead. This is not a feature of the hitboxes described above, but a separate and much more simple system called a collision box:

<some examples of collision boxes, including one of a collision box being pushed forward by a move>

This is what ArcSys games use to check the distance between players when doing throws and similar moves, to avoid strange looking situations where a player gets thrown from half a screen away. So even if the hitbox for a throw looks enormous in some cases, they're often much more limited by this range check.

Vector Check

A final check added to some moves is a check on the actual direction and vector between both player's origin points, which checks if the target is in front or behind and above or below the attacker, and by how much. Most of the time this check will not be noticed by a player; It is mostly used to make sure moves like throws don't sometimes hit an opponent behind the attacker:

<some examples throws that fail because of being behind the attacker>