mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #106084 from Kaleb-Reid/fix-geometry-3d
Fix ghost collisions in segment_intersects_convex()
This commit is contained in:
commit
00f8f62be7
2 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue