Ok let me just recap what i discovered of what is happening in the game normally.
There's 2 main values that I used in my testing: the map render mode and the camera mode. The map render mode tells how the map is rendered at anty point, you can have it 2d mode render or 3d mode render or.......an upside down mode whcih idk why it even exists.
Basically, you saw it already, it allowed me to do this:
Yeah, it creates some laoding problem, but this is the most interesting part of it, because the point of this is to have an accurate visual of the map when everything happens in 2d mode and it also allows to use free look.
So, there's 2 interesting things that happens in 2d mode, #1, you can ONLY move from left to right. The only other movement differences is the crouch whioch you gain, but let me explain what it means for left and right. If you imagine a circle, it means that you can only go to angles that are opposite to each other. Normally, it';s right (90 degree) and left (270 degree), I think you can guess that 0 is forward and 180 is backward. You can ONLY move there which normally prevents any movement on the Z axis (the depth, it's the axis that is forward backward).
So, how can you hit a saveblcok which is placed at specific coordinates in 2d mode if you cannot move in the Z axis?
The answer lies here:
You can clearly see I never was under the block, but I coudl hit it. It's not the hitbox of mario (testing showed it would make no sense), it's the hitbox of the save block itself that was expanded on the Z axis.
Pretty much every if not most objects int he game like doors and npc has that, the only requirement being that they are loaded (some has restrictions like the tower elevator door, but msot don't).
Why would they do this?
The entire point of 2d mode is to make the Z axis make no difference on your movement, expanding the hitbox on that axis just do that. In 3d mode, you can move on all axis, but these expansions are disabled which is why you can't hit a siveblock while you are next to it in 3d, but ou can in 2d.
Now, everything I told you is known and happens normally........but gltich hunters wants to care about more stuff.
Because that';s not the full story. Ever wondered how you can only move from left to right?
It's calculated by......the camera.
Ok so normally the game puts the camera mode as autofollow which follows the character, but I have to [put it in manual mode to be able to do test on it, it's annoying because the game doesn;t give a thign about moving the camera and I have to do it, btu it;s the only way.
The camera has 2 xyz coordinates, the position of the camera, where it is looking from and the focus point, where it is looking at. Just imagine that these 2 coordinates forms a line in the 3d space. This line can be claculated and everything including its angle. You can even calculate what woudl be the line perfectly perpendicular to it and this line woudl be your axis of movement.
Now, this might sound like amth nerds, but let me show pics so that everything I said makes sense.
Here, I hacked my camera to have a tilted angle of around 63 degree:
Notice that mario still faces the screen? this is still 2d mode btw so he can only move from left to right RELATIVE TO THE ANGLE OF THE CAMERA!
So, it;s no longer 90 and 270 degree, it;s these + around 63 so around 153 and 333 degree. Aka, it;s like you can move in ONLY a tilted diagonal angle in 3d.
So.....what was the poitn of knowing this?
The hitboxes reactions. Some objects like save block keeps their original Z axis expansion because here:
i can;t hit the block (I am still in 2d mode btw, I jsut tilted the camera like so)
But here:
I can.
The thign is other stuff such as doors and npc has their hitbox expansion tilted too, here's me taliing to an npc that I am clearly not facing in the Z axis:
her hitbox was expanded on MY axis mvoement which is still relative to the camera. Doors works the same and this can mean you can open them even thoguh are are very far from them.
One last thing, for some reason, I acn;t flip normally with he camera mode in manual, I have to be at autofollow.
so there, i will do more test on the 3d modes and stuff before doing part 2, this mechanic bte is the msot important of the whole game so it's improtant to understand it
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)