Unity Mathematics AABB.Contains algorithm looks buggy

That’s not part of the Unity Mathematics package. It’s part of the Entities package. This was fixed in Entities 1.2.0-pre.12 (2024.02.13).

        public bool Contains(AABB b) => all((Min <= b.Min) & (Max >= b.Max));

https://docs.unity3d.com/Packages/com.unity.entities@1.2/changelog/CHANGELOG.html

Please use code tags when posting code, screenshots are pointless.

1 Like