Commit Graph

10 Commits

Author SHA1 Message Date
36ce94d3de is_equal -> is_colinear 2020-11-15 18:56:48 +04:00
b7475a44f2 Use CYAN for separating line 2020-11-15 18:55:37 +04:00
1662e2e4a9 Draw separating lines
Also reduce line thickness of shapes to 1
2020-11-15 13:26:20 +04:00
1d84976c99 Allow changing polygon sides in SAT demo 2020-11-15 12:48:07 +04:00
518f0e55ef Add generate_polygon, rename Rect -> AxisAlignedBB 2020-11-15 12:24:53 +04:00
726ef4458d Ticken overlap lines, change no-overlap colour from yellow to green 2020-11-15 12:21:51 +04:00
5dfd84a2f6 Allow rotating shape in SAT
Moved rendering of separating axes to function
Calculate overlaps instead of binary collision, write min distance to
resolve collision
2020-11-15 00:58:22 +04:00
7f33e917d7 Add Separating Axis Theorum demo 2020-11-14 22:12:30 +04:00
c313b3e8ba Refactors
- Move all pygame draw calls into draw module
- Scrap indvidual shape modules for single 'geom' module
- Center of screen is now 0,0
2020-11-14 21:15:47 +04:00
699acd1602 Initial commit 2020-11-13 18:46:31 +04:00