TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I also made a three-body simulation

12 点作者 sulami大约 1 年前
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 条评论

awinter-py大约 1 年前
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 未加载
nico大约 1 年前
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 未加载
pointlessone大约 1 年前
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.
DigitalHackOp大约 1 年前
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.
gaws大约 1 年前
How was your experience working with WASM and implementing it on the page?