3 ms·
The HTML source code is a well-commented, fun read. - There's a fair bit of math to model drag, mass, and density using the specific gravity of ice and seawate
by sa46 2y ago
The HTML source code is a well-commented, fun read.
- There's a fair bit of math to model drag, mass, and density using the specific gravity of ice and seawater (with tweaks to make it more realistic for 2d).
- Try adding a polygon that overlaps itself (self-intersects).
- You can paste images! The code traces the image and picks the most complex polygon.