A deterministic 2D rigid body engine written in MoonBit:
SAT collision detection, impulse solver with warm starting, Coulomb friction,
revolute, distance, prismatic, angle limit and motor joints, sleeping, and a
sort-and-sweep broadphase.
Every frame below was produced by moon run cmd/main --target js.