You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the player collides with a slanted fungus in the right way, the game doesn't register them as on the ground properly. It's not a softlock, as you can get out by holding either left or right.
To Reproduce
Go to tutorial 1 room 3.
Use the hover nozzle underneath the slanted fungus.
Land inside of it.
Expected behavior
Mario should either fall to the ground or be snapped to the fungus.
Video of the bug
8mb.video-bK3-6ap2dlQZ.mp4
System Information
OS/Browser: Windows
Game version: v0.2.0 (Editor)
Other specs: N/A
Additional context
This can also be performed by walking off the higher side and holding back into the platform.
The text was updated successfully, but these errors were encountered:
Kuma-Boo
changed the title
Fungus floor
Player can land inside of slanted fungi
Mar 28, 2023
Hypothesis: you hover in tilted mushrooms, because there's code that recognizes when you just barely miss a jump to a ledge above you (Mario's position >= y position of ledge - a bit), and snaps you upwards to the y position of the ledge.
The problem arises when the ledge is slanted, and the code uses the y-position of the center of the ledge, even though the higher side of sloped floors is higher than the center, and needs Mario to be higher to either almost or fully clear it.
The code should detect when you're either just below the y position of your current x position, or (more leniently) your position projected along the normal (perpendicular) vector is just below the plane's surface. Then it should snap you to the y-position at your current x position, or (smaller jump but also moves you horizontally) project your position along the normal to the plane's surface. Afterwards, it may be necessary to eject Mario further upwards, so his entire floor collision points (not just bottom center) are located above the floor.
In general, I think the SafetyNet class should be deprecated and replaced with a player-centered solution using raycasts. SafetyNet is clunky and hard to adapt, and a raycast solution would allow the player to walk up shallow stairs instead of getting stuck.
Describe the bug
If the player collides with a slanted fungus in the right way, the game doesn't register them as on the ground properly. It's not a softlock, as you can get out by holding either left or right.
To Reproduce
Go to tutorial 1 room 3.
Use the hover nozzle underneath the slanted fungus.
Land inside of it.
Expected behavior
Mario should either fall to the ground or be snapped to the fungus.
Video of the bug
8mb.video-bK3-6ap2dlQZ.mp4
System Information
Additional context
This can also be performed by walking off the higher side and holding back into the platform.
The text was updated successfully, but these errors were encountered: