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
Member

Fixes #17

Fixes #17
aidan9382 added 2 commits 2025-11-18 19:28:23 +00:00
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
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
Quaternions approved these changes 2025-11-18 19:41:51 +00:00
Quaternions left a comment
Owner

Elegant and minimal, great work

Elegant and minimal, great work
Quaternions merged commit 49c0c16e35 into master 2025-11-18 19:42:14 +00:00
aidan9382 deleted branch consistent-collision-order 2025-11-18 20:21:33 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StrafesNET/strafe-project#20