Skip to content

Fix ghost collisions in segment_intersects_convex() #106084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kaleb-Reid
Copy link

@Kaleb-Reid Kaleb-Reid commented May 5, 2025

Previously segment_intersects_convex() ignored planes with a normal orthogonal to the direction of the segment. This is because they cannot intersect. However, if the points are above the plane then that means the plane is separating and the segment cannot intersect the convex hull.
image
The line segment on the left shows the intersection previously reported by the function, because the plane facing it has an orthogonal normal vector and is ignored (Ignore the unrelated segment on the right originating from inside the cube).

I think this fixes #69455 but I cannot fully confirm that the original issue is solved by this as it's pretty vague and I had problems running the mrp.

@Kaleb-Reid Kaleb-Reid requested review from a team as code owners May 5, 2025 05:47
@Chaosus Chaosus added this to the 4.5 milestone May 5, 2025
@Kaleb-Reid Kaleb-Reid changed the title Check if plane parallel to segment is separating in segment_intersects_convex Fix ghost collisions in segment_intersects_convex() May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

segment_intersects_convex problem
2 participants