1 When Mario moves upwards and enters a ceiling hitbox, his vertical movement is canceled and vertical speed is set to zero, cutting short his upward trajectory.
“If he enters a ceiling hitbox while moving upwards, then his movement gets canceled AND his vertical speed gets set to 0.”