Just equal instead of less than or equal

This commit is contained in:
Irlan 2019-04-10 08:15:55 -03:00
parent 8950df2ef6
commit d34fce1e4d
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ void b3BuildEdgeContact(b3Manifold& manifold,
// Compute the closest points on the two lines.
float32 b = b3Dot(N1, N2);
float32 den = 1.0f - b * b;
if (den <= 0.0f)
if (den == 0.0f)
{
return;
}

View File

@ -63,7 +63,7 @@ static void b3RebuildEdgeContact(b3Manifold& manifold,
// Compute the closest points on the two lines.
float32 b = b3Dot(N1, N2);
float32 den = 1.0f - b * b;
if (den <= 0.0f)
if (den == 0.0f)
{
return;
}