I explain how wall hitboxes work. I'm sure everyone's encountered their fair share of strange wall hitbox encounters, but fear no more - now you'll understand exactly what's going on and why! Thanks to Tyler Kehne and Peter Fedak for looking into the code for wall hitboxes and then explaining to me so that I could explain it to everyone else.
Here's a summary: Walls extend out in the cardinal direction that most closely matches their perpendicular direction. For 45 degree angled walls, they extend out in the X direction. Walls extend outward a distance that makes the perpendicular distance 50 units. They also extend inward a distance that makes the perpendicular distance 50. If Mario enters this parallelogram, then he is instantaneously moved outward perpendicularly to the edge of the parallelogram.
1 авг 2024