Closed zyxia closed 1 year ago
When the hash values are equal, doesn't it affect the index of the Dictionary?
Yes, but it won't break the dictionary- the hash value is allowed to collide with other entries. It's just not ideal.
This hash could be improved, I just didn't bother at the time.
https://github.com/bepu/bepuphysics2/blob/d77ee1a33268c4439b8d1d62b5dd873724833ced/BepuPhysics/Collidables/ConvexHullHelper.cs#L414