TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I also made a three-body simulation

12 pointsby sulamiabout 1 year ago
Somewhat inspired by a recent post here, I also made a three-body simulation on a whim, meaning to try out macroquad[0] (verdict: really nice!). Thanks to the engine I could trivially target wasm as well, so others can get mesmerized too.<p>The source is available here: <a href="https:&#x2F;&#x2F;github.com&#x2F;sulami&#x2F;three-bodies">https:&#x2F;&#x2F;github.com&#x2F;sulami&#x2F;three-bodies</a><p>[0]: <a href="https:&#x2F;&#x2F;docs.rs&#x2F;macroquad&#x2F;latest&#x2F;macroquad" rel="nofollow">https:&#x2F;&#x2F;docs.rs&#x2F;macroquad&#x2F;latest&#x2F;macroquad</a>

5 comments

awinter-pyabout 1 year ago
I don&#x27;t understand how the aliens weren&#x27;t able to lie but they were able to falsify scientific results<p>that&#x27;s like the third most common form of lying
评论 #40072479 未加载
nicoabout 1 year ago
So nice to look at, thank you for posting this, really cool<p>Would love to be able to zoom in&#x2F;out and rotate, I kinda was expecting to be able to do it with the mouse and was a bit surprised that clicking just restarted the animation&#x2F;simulation<p>Great work
评论 #40072387 未加载
pointlessoneabout 1 year ago
Interesting choice of modular coordinates. I wonder how gravity works here. Does it reach across the edge or is it confined to the modulo?<p>UI is a bit unfriendly on mobile. It doesn’t seem there’s a way to interact with it on a phone.
DigitalHackOpabout 1 year ago
I think this is very cool, but the edge warping negates a lot of the chaos imho. It keeps things interacting in the center of the screen, but it prevents the chaos of bodies being yeeted out into the void.
gawsabout 1 year ago
How was your experience working with WASM and implementing it on the page?