A free physics simulation — play it in your browser, no install. 零依赖的三体问题模拟:Canvas 2D 伪3D + 速度Verlet辛积分 + 自适应步长
Made this, @ericick? 5+ people played it here → or use email
GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.
Open the live demo Source on GitHub零依赖、零构建、零常驻进程的三体/N 体引力动画。Canvas 2D 伪 3D + 速度 Verlet 辛积分 + 自适应步长,针对树莓派 5 + RustDesk 远程桌面做过资源优化。
参数设置:3 个天体各自的质量、密度(仅记录,不参与计算)、位置 (x,y,z)、速度 (vx,vy,vz)。 预设画廊:8 字形周期轨道、太阳-行星-月球、双星+微扰体、拉格朗日 L4 三角(稳定三角解)、以及 3 个编排舞(蝴蝶/飞蛾/阴阳——不稳定,会混沌解体)。 N 体沙盒:体数 2–200,分布可选旋转盘/随机球/双团碰撞,配合碰撞合并看吸积。 碰撞合并:间距小于半径和的两体合并(动量守恒、质量相加),可开关。 拖尾:累积画布光迹(半分辨率,省 4 倍像素),可开关。 时间倒放:Verlet 时间可逆,一键正放/倒放。 时间倍率 0.1×–30×、自动取景、俯仰角/自动旋转视角、分辨率切换。 实时诊断:FPS、能量漂移 %、天体数、物理子步/帧。
帧率无上限:渲染用 requestAnimationFrame,显示器 60Hz 跑 60fps、120Hz 屏自动 120fps;物理用固定步长+累加器与渲染解耦。
Built something like this? Submit your vibe — free account, takes a minute. How listing works.
Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.
Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.