1 When Mario is on the ground and approaches a ceiling, his movement is canceled and he performs a pushing animation, making it appear his head touches the ceiling.
“First, if Mario’s on the ground, then the ceiling hitbox cancels his movement. So you can see that as Mario tries to enter the hitbox, his movement gets canceled, which prevents him from entering the ceiling hitbox. And he also does the pushing animation when this happens. Here’s what that looks like in the game. So note that even though Mario’s 160 units below the ceiling triangle, it basically looks like his head is touching the ceiling because his model is just under 160 units tall.”