Commit Graph

7 Commits

Author SHA1 Message Date
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