The player is only holding right, however the character still moves up a bit to go around an obstacle.
My current collision system has access to:
- The entity's previous position
- The entity's current position
- The entity's (axis-aligned) bounding box
- All the obstacles and their (also axis-aligned) bounding boxes
Also it proccesses each axis separatelly.
How can I implement this?