Merge pull request #106084 from Kaleb-Reid/fix-geometry-3d

Fix ghost collisions in segment_intersects_convex()
This commit is contained in:
Thaddeus Crews 2025-10-03 12:01:02 -05:00
commit 00f8f62be7
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 5 additions and 0 deletions

View file

@ -292,6 +292,10 @@ public:
real_t den = p.normal.dot(dir);
if (Math::abs(den) <= (real_t)CMP_EPSILON) {
if (p.is_point_over(p_from)) {
// Separating plane.
return false;
}
continue; // Ignore parallel plane.
}