Commit Graph

20 Commits

Author SHA1 Message Date
17e0ab19ca Add reflection demo 2020-11-16 13:06:11 +04:00
0293c17b3b Reduce line widths in AABB and projection demos 2020-11-16 13:05:52 +04:00
e6ff706419 Fix flipped right/left normal vector functions 2020-11-16 13:05:13 +04:00
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
78d676e63a Update requirements.txt 2020-11-15 18:34:49 +04:00
b89dc841f2 Tighten up when two vectors are considered 'equal' 2020-11-15 13:34:17 +04:00
4e0c6588e1 Simplify draw.rect 2020-11-15 13:26:57 +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
3296d3a582 Add rotation support to Polygon 2020-11-15 00:21:44 +04:00
7f33e917d7 Add Separating Axis Theorum demo 2020-11-14 22:12:30 +04:00
bfe1ab8ee0 Default line width should be 1 2020-11-14 22:10:22 +04:00
dc11efd60a Add docstrings to math.py 2020-11-14 22:10:04 +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