Water seam: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(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...")
 
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
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.
{{stub}}
==References==
 
[https://github.com/n64decomp/sm64/blob/master/src/engine/surface_collision.c#L609 Code Responsible for the glitch]
'''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.
 
The glitch can be done in [[Jolly Roger Bay]] and the [[The Castle|Castle Grounds]].


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

Latest revision as of 05:12, 26 September 2022

Water seams are float-perfect locations where Mario can stand underwater between two 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.

The glitch can be done in Jolly Roger Bay and the Castle Grounds.