VelcroPhysics icon indicating copy to clipboard operation
VelcroPhysics copied to clipboard

Implement equality interface

Open Genbox opened this issue 8 years ago • 0 comments

The engine itself uses HashSet<T> in order to quickly index objects. HashSet<T> uses IEqualityComparer<T> implementation unless another comparer is specified in the constructor. Shapes, bodies, fixtures and other data classes should expose the comparer via IEqualityComparer<T> for such features to function correctly.

Genbox avatar Apr 09 '17 00:04 Genbox