Misalignment: Difference between revisions

Explained the truncation.
No edit summary
(Explained the truncation.)
Line 5: Line 5:


A ''Misalignment'' is a 1x1-unit area a floor hitbox extends to but wall hitboxes do not. On convex corners, they allow Mario to snap up to the floor from up to 78 units below it, as opposed to just 30 units when there is a wall hitbox present.
A ''Misalignment'' is a 1x1-unit area a floor hitbox extends to but wall hitboxes do not. On convex corners, they allow Mario to snap up to the floor from up to 78 units below it, as opposed to just 30 units when there is a wall hitbox present.
It is the same truncation responsible for [[Parallel Universe|Parallel Universes]] that causes misalignment; because floor and ceiling detection is done with integers, all decimal places are removed. If Mario has the right position off the floor, his position will be rounded to a spot on the floor, making the floor appear to extend to his actual position. Walls do not do this, since they use floating-point numbers, which causes the floor to not properly align with its adjacent walls.


== Uses ==
== Uses ==
17

edits