Water seam: Difference between revisions

Jump to navigation Jump to search
465 bytes removed ,  22 December 2020
no edit summary
(Created page with "'''The Water Seam''' glitch is a glitch that allows Mario to stand underwater at certain locations. Specifically, Mario can stand underwater if he is on the seam between two w...")
 
No edit summary
Line 1: Line 1:
'''The Water Seam''' glitch is a glitch that allows Mario to stand underwater at certain locations. Specifically, Mario can stand underwater if he is on the seam between two water boxes. The glitch occurs due to an edge case in the code that handles water detection. If Mario's x,y,z coordinates are within a water box, he is put into the swimming state. However, if one of Mario's coordinates is on the seam between water boxes, he is not put into the swimming state. This glitch is floating point precise and can only be done in a few areas, limiting its usefulness. The edge case in the code also applies to poison gas in [[Hazy Maze Cave]] but the glitch cannot be performed there due to a lack of usable seams.
'''Water Seams''' are float-perfect locations where Mario can stand underwater between two [[Waterbox|waterboxes]]. Because the check for collision with waterboxes is exclusive to the edges, Mario can stand underwater at the exact coordinates of the seam between two waterboxes that are supposed to be flush. The glitch also applies to poison gas boxes, but there are no usable poison gas seams.
==References==
 
[https://github.com/n64decomp/sm64/blob/master/src/engine/surface_collision.c#L609 Code Responsible for the glitch]
The glitch can be done in [[Jolly Roger Bay]] and the [[Castle Grounds]].


[https://www.youtube.com/watch?v=Bya28wgj46c RTA setup for performing the glitch in JRB]
{{Glitches}}
{{Glitches}}

Navigation menu