From Ukikipedia
Jump to navigation Jump to search

SheNaNigans are a category of glitches that occur due to Mario's position being NaN.

Obtaining a NaN position

Due to the nature of floats and the N64 hardware, there is no currently known way for Mario to reach a position of NaN on an N64 due to the console crashing from a floating point exception long before obtaining this value, but it has been done on emulators.

The basic idea is to first reach INF or -INF speed, and then have a joystick position that will multiply that speed by a zero value[citation needed]. A multiplication between 0 and -INF will return the value NaN. This has been achieved previously using the elevator Big Boo's Haunt.

Object Interaction

Whenever Mario's position is NaN in any given axis, the game will make Mario interact with all objects on the plane of that axis. This is because the game return "true" by default when evaluating object collision, and a NAN value will always make any comparison return "false"[1]. This can be used to collect coins, stars or interact with any constantly loaded object.