Skip to content

Commit 4bf02b8

Browse files
Fix two triangles intersect with intersection distances close to zero (#197) (#198)
1 parent ce4eb22 commit 4bf02b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inc/DirectXCollision.inl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4491,7 +4491,7 @@ namespace TriangleTests
44914491

44924492
// Ensure robustness with co-planar triangles by zeroing small distances.
44934493
uint32_t ADistIsZeroCR;
4494-
XMVECTOR ADistIsZero = XMVectorGreaterR(&ADistIsZeroCR, g_RayEpsilon, XMVectorAbs(BDist));
4494+
XMVECTOR ADistIsZero = XMVectorGreaterR(&ADistIsZeroCR, g_RayEpsilon, XMVectorAbs(ADist));
44954495
ADist = XMVectorSelect(ADist, Zero, ADistIsZero);
44964496

44974497
uint32_t ADistIsLessCR;

0 commit comments

Comments
 (0)