Same inputs, the same physics to the bit on every device
Deterministic 2D and 3D physics with rollback and turn-based netcode, for versus and co-op games where physics is the core of the play. Only inputs are sent. When peers drift apart, it shows the tick and the value. Unity, Godot and Unreal call the same core.
| tick | HostWindows x64, Unity | GuestAndroid arm64, Godot | |
|---|---|---|---|
| 143 | 96640351 | 96640351 | |
| 144 | 7fe20a30 | 7fe20a30 | |
| 145 | 4634646c | 4634646c | |
| 146 | 5be8423d | 5be8423d | |
| 147 | 647390e6 | 647390e6 | |
| 148 | 1025404c | 1025404c | |
| 149 | 3d4da4bd | 3d4da4bd | |
| 150 | 60ebe409 | 804e5eb0 | |
Desync found at tick 150 body 76, field xA Cause physics: same inputs and shapes, the physics values drifted | |||
| Guest replaced with the host's state | |||
| 151 | 76c91ec6 | 76c91ec6 | |
| 152 | 4d11870c | 4d11870c | |
| 153 | 2e353e45 | 2e353e45 | |
| 154 | a649ae63 | a649ae63 | |
| 155 | fac6141a | fac6141a | |
| 156 | ead9d0a8 | ead9d0a8 | |
Choose your engine
Unity
2022.3 LTS or newer
UPM package
Start with Unitydev.petaf.detphys 1.0.0Godot
4.3 to 4.8
Add-on
Start with Godotaddons/detphys(GDExtension and C#)Unreal Engine
5.4 to 5.8
Plugin
Start with UnrealDetPhys 0.1.0(beta)
Matches work across engines (Godot with Unity, Unreal with Unity, Unreal with Godot).
Measured
| What | Value | Conditions |
|---|---|---|
| Same hash | Windows x64, Android arm64, iOS arm64 | The same with MSVC, clang-cl or MinGW builds. Devices: Galaxy S9 and iPhone 11. All three engines call the same prebuilt core |
| Traffic | 32–48 B per tick, one way | Real-time inputs, acks and hash checks, without UDP and IP headers |
| Rollback 2D | 3.50 ms per frame | 200 baked concave bodies, 10 ticks recomputed, i7-12700F, 4 workers |
| Rollback 3D | 3.15 ms per frame | 200 boxes, spheres, capsules and hulls, N = 10, i7-12700F, 4 workers |
| Mobile | 60 bodies at N = 10 within 4 ms | Baked concave shapes, Galaxy S9 (Snapdragon 845) |
| Desync report | About 0.3 s | From detection until both devices hold the same report, PC and Galaxy S9 |
Not included in this version (planned)
- A Steam transport (on Steam, plug in your own transport, or use EOS P2P or your own relay)
- EOS P2P on iOS (Unity and Godot) and on Android in Unreal
- Unreal on iOS, and the engine layers on macOS