Merge pull request #106084 from Kaleb-Reid/fix-geometry-3d
Fix ghost collisions in segment_intersects_convex()
This commit is contained in:
@ -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.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user