enter image description here

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

How to detect overlap between aabb vs aabb:


  • 1
    \$\begingroup\$ Presumably you started by typing "platformer collision detection" into your favourite search engine, and found the many existing guides, tutorials, examples, and past Q&A on this topic. After reviewing this wealth of resources, which guide have you chosen to try to follow? How have you tried putting it into practice so far, and where did you get stuck along the way? \$\endgroup\$
    – DMGregory
    Commented Jul 8, 2020 at 18:44
  • \$\begingroup\$ Looks like you found a great set of resources there. What's the next step you need help with after putting those into practice? Or, if you've solved your problem, would you like to post your solution as an answer below? \$\endgroup\$
    – DMGregory
    Commented Jul 9, 2020 at 14:31


You must log in to answer this question.

Browse other questions tagged .