1
\$\begingroup\$

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:

http://noonat.github.io/intersect/

\$\endgroup\$
2
  • 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 Jul 8 '20 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 Jul 9 '20 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.