Jondolf / avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.
https://crates.io/crates/avian3d
Apache License 2.0
1.55k stars 120 forks source link

Make contacts deterministic across Worlds #480

Closed cBournhonesque closed 3 months ago

cBournhonesque commented 3 months ago

Objective

We noticed an issue where the Collisions were using the order of Entity directly to sort the pair of entities in a contact. The issue is that for networking, there is no guarantee that the pair of Entities that are replicated between a Client and a Server world are in the same direction.

Solution

Test

cBournhonesque commented 3 months ago

Maybe the docs should be improved as well to make clear that: