r/UnityAssets • • 18h ago

"$15.99" [2D Physics Engine] Deterministic Fixed-Point 2D Physics Engine : A custom 2D physics that fully deterministic on every machine

Hey everyone, LowHikeGames here :

I'm currently developing my first commercial game, Squishy League, in Unity. It's a 1v1, very fast-paced versus multiplayer game, and I wanted P2P online with rollback, like in fighting games.

But I ran into a big problem: Unity's physics is not 100% deterministic, and rollback needs it to be.

So I decided to recreate Unity's whole 2D physics engine, but 100% deterministic across every machine. It uses fixed-point math to make the results match on every CPU. It took me over a month to build this tool, and even with Claude's help, getting everything to work perfectly without bugs took a lot of time...

If anyone has faced the same problem and doesn't want to lose their mind over it. I've decided to publish it on the Unity Asset Store at a small price. The package gives you a 100% deterministic, easy-to-use and fully tested, 2D physics with every component Unity offers (Rigidbodies, colliders, joints...).

It also comes with an auto-converter that automatically switches you from Unity's default physics to the deterministic version. I've already tested it: it keeps the exact same parameters, and the physics feel is exactly the same as Unity's, except that it's fully deterministic !

If you're interested in the project or want to support it, here's the link :) https://assetstore.unity.com/packages/slug/417458

1 Upvotes

0 comments sorted by