craftworkgames / MonoGame.Extended

Extensions to make MonoGame more awesome
http://www.monogameextended.net/
Other
1.44k stars 325 forks source link

PrimitivesHelper.IntersectSlab is not properly swapping two values #726

Closed mattj1 closed 4 months ago

mattj1 commented 3 years ago

https://github.com/craftworkgames/MonoGame.Extended/blob/fce644e62f58542c77e0f7151261d514811cb026/src/dotnet/MonoGame.Extended/Math/PrimitivesHelper.cs#L26

Line 26 should actually say var temp = rayNearDistance;

lithiumtoast commented 3 years ago

Hmm, this is an actual bug.