Commit Graph

9 Commits

Author SHA1 Message Date
72860a3e6b Better readability for SAT demo 2020-11-16 08:55:33 +04:00
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