Hacker News new | ask | show | jobs
by sa46 742 days 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.