2D polygon-based collision detection and response | Dark Hacker News