Physics Engine

The Fastest Gravity Algorithm You’ve Never Heard Of (And Why Your Physics Engine Is Stuck in the Stone Age)

The Fast Multipole Method achieves O(N) complexity for N-body gravity simulations, shattering the long-held belief that accurate physics engines must be O(N²). A new zero-dependency open-source library makes this algorithm accessible to game developers and simulation enthusiasts, enabling real-time planetary dynamics with thousands of bodies.

Your Game Physics Are Wrong. That’s the Point.

Every physics engine faces a trade-off: accuracy vs. performance. Clipping (allowing objects to pass through) is often a deliberate design choice to maintain frame rate and responsiveness. Substepping ensures accuracy but risks lag. The best games cheat physics intentionally. Accuracy is the enemy of fun.