How to detect collisions with a curve
问题 I am making an HTML5 and Javascript platform game. At this moment all blocks of the map are handled as squares. This method is "ugly" when the block is not an exact square/rectangle. Check this image I made to get a better understand of my point: Case one: The "bottom bumper" is touching the square that envolves the block so the movement is stopped. Case two: If I use the same method as above, when the players jumps, the movement will be stopped before the "top bumper" even touches the block.