I want to make a 2d platformer with moving, jumping and wall sliding. How can I make a simple pleasant collision resolution system that works for the following rectangles.
Player is red, platform is black, I want to detect if the player is sliding a wall, or hitting the ground, or doing both ( as in third example). Also take the appropriate response.
Also I have no idea what I am talking about so a little context might help.
These resources helped me:
How to resolve collision: 2D AABBs and resolving multiple collisions