Ensure collisions are prioritised by model id instead of psuedo-random hashmap ordering #20

Merged
Quaternions merged 2 commits from aidan9382/strafe-project:consistent-collision-order into master 2025-11-18 19:42:14 +00:00

2 Commits

Author SHA1 Message Date
49c0c16e35 Use a From implementation instead of manual conversion
If the contacts and intersects map ever change in the future to not be 1:1 with gaps but instead something else, this guarantees that this implicit use of the relationship will flag at a compiler level
2025-11-18 19:25:44 +00:00
255bed4803 Ensure the PhysicsData's bvh respects the original model ordering
There's no importance in worrying about the core HashMap ordering since it's not used as an iterator except for outside of this very function for bvh purposes
2025-11-18 19:25:44 +00:00