Closed princec closed 2 years ago
Hey @princec, Thanks for the report! And sorry about that. There was indeed a small error in the code. I even mentioned the source of the implementation but failed to type it off correctly. :/ It is now fixed in 1.10.4-SNAPSHOT. Please use that if you can, for the time being.
Thanks ever so much Kai!
This code snippet illustrates something weird behind intersectSphereSphere in JOML1.10.1 (haven't checked other versions).
There are two spheres there, which are clearly colliding when we check a.distance(b), the result being 9.67 which is less than the combined radii of the two spheres of 12.56.
However, intersectSphereSphere returns false.
The neither sphere in this case is fully enveloping the other; it is a clear case of a straightforward intersection: